| 1 | import { Transition as HLTransition } from "@headlessui/react"; |
| 2 | import { cn } from "../../util/cn"; |
| 3 | |
| 4 | type TransitionProps = React.ComponentProps<typeof HLTransition>; |
| 5 | function Transition(props: TransitionProps) { |
| 6 | return ( |
| 7 | <HLTransition |
| 8 | enter="transition duration-100 ease-out" |
| 9 | enterFrom="transform scale-95 opacity-0" |
| 10 | enterTo="transform scale-100 opacity-100" |
| 11 | leave="transition duration-75 ease-out" |
| 12 | leaveFrom="transform scale-100 opacity-100" |
| 13 | leaveTo="transform scale-95 opacity-0" |
| 14 | {...props} |
| 15 | className={cn("flex flex-col", props.className)} |
| 16 | /> |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | export { Transition }; |