From 0b6fb8e713cc231ac8bdb2d2a3ea2314c773d51a Mon Sep 17 00:00:00 2001 From: Jared Scott Date: Tue, 31 Oct 2023 17:14:28 +0800 Subject: [PATCH] Update tailwinddoc.js for PanelMenu (#5199) --- components/doc/panelmenu/theming/tailwinddoc.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/components/doc/panelmenu/theming/tailwinddoc.js b/components/doc/panelmenu/theming/tailwinddoc.js index f88664617e..ae7cd78a7d 100644 --- a/components/doc/panelmenu/theming/tailwinddoc.js +++ b/components/doc/panelmenu/theming/tailwinddoc.js @@ -6,12 +6,15 @@ export function TailwindDoc(props) { const code = { basic: ` const TRANSITIONS = { - overlay: { - enterFromClass: 'opacity-0 scale-75', - enterActiveClass: 'transition-transform transition-opacity duration-150 ease-in', - leaveActiveClass: 'transition-opacity duration-150 ease-linear', - leaveToClass: 'opacity-0' - } + toggleable: { + timeout: 500, + classNames: { + enter: 'max-h-0', + enterActive: '!max-h-40 overflow-hidden transition-all duration-500 ease-in-out', + exit: 'max-h-40', + exitActive: '!max-h-0 overflow-hidden transition-all duration-500 ease-in' + } + }, }; const Tailwind = {