Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5387: Tailwind TRANSITION docs #5396

Merged
merged 1 commit into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading