Skip to content

Commit

Permalink
Fix #5387: Tailwind TRANSITION docs (#5396)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 25, 2023
1 parent d53f65b commit 034afc2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/doc/menu/theming/tailwinddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ import Link from 'next/link';
export function TailwindDoc(props) {
const code = {
basic: `
export const TRANSITIONS = {
overlay: {
timeout: 150,
classNames: {
enter: 'opacity-0 scale-75',
enterActive: 'opacity-100 !scale-100 transition-transform transition-opacity duration-150 ease-in',
exit: 'opacity-100',
exitActive: '!opacity-0 transition-opacity duration-150 ease-linear'
}
}
};
const Tailwind = {
menu: {
root: 'py-1 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border border-gray-300 dark:border-blue-900/40 rounded-md w-48',
Expand Down
12 changes: 12 additions & 0 deletions components/doc/tieredmenu/theming/tailwinddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ import Link from 'next/link';
export function TailwindDoc(props) {
const code = {
basic: `
export const TRANSITIONS = {
overlay: {
timeout: 150,
classNames: {
enter: 'opacity-0 scale-75',
enterActive: 'opacity-100 !scale-100 transition-transform transition-opacity duration-150 ease-in',
exit: 'opacity-100',
exitActive: '!opacity-0 transition-opacity duration-150 ease-linear'
}
}
};
const Tailwind = {
tieredmenu: {
root: {
Expand Down

0 comments on commit 034afc2

Please sign in to comment.