feat(Slideover): handle top and bottom side (#1834)

This commit is contained in:
Vitta
2024-06-05 10:30:45 +02:00
committed by GitHub
parent 6e2678d1d8
commit 50ad14f9df
2 changed files with 50 additions and 8 deletions

View File

@@ -20,10 +20,13 @@ export default {
padding: '',
shadow: 'shadow-xl',
width: 'w-screen max-w-md',
height: 'h-screen max-h-96',
translate: {
base: 'translate-x-0',
left: '-translate-x-full rtl:translate-x-full',
right: 'translate-x-full rtl:-translate-x-full'
right: 'translate-x-full rtl:-translate-x-full',
top: '-translate-y-full',
bottom: 'translate-y-full'
},
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
transition: {