@marianobura/vue-sheet-modal
v1.0.13
Published
Componentes Vue para modal centrado y bottom sheet con drag y customización
Maintainers
Readme
Props disponibles
BaseModal
| Prop | Tipo | Default | Descripción |
| ------------------- | ------- | ------------- | ----------------------------------------- |
| modelValue | Boolean | — | Controla si el modal está abierto |
| closeOnOverlay | Boolean | true | Permite cerrar el modal clickeando fuera |
| overlayOpacityStart | Number | 0.5 | Opacidad inicial del fondo |
| overlayColor | String | '0, 0, 0' | Color RGB del fondo en formato 'R, G, B' |
| containerBgColor | String | #ffffff | Color de fondo del contenedor |
| roundedClass | String | — | Clase Tailwind para bordes redondeados |
| maxHeight | String | 80vh | Altura máxima del modal |
BaseBottomSheet
| Prop | Tipo | Default | Descripción |
| ------------------- | ------- | ----------------------------- | --------------------------------------------- |
| modelValue | Boolean | — | Controla si el bottom sheet está abierto |
| closeOnOverlay | Boolean | true | Permite cerrar clickeando fuera |
| overlayOpacityStart | Number | 0.5 | Opacidad inicial del fondo |
| overlayColor | String | '0, 0, 0' | Color RGB del fondo en formato 'R, G, B' |
| containerBgColor | String | #ffffff | Color de fondo del contenedor |
| roundedClass | String | — | Clase Tailwind para bordes redondeados (arriba)|
| maxHeight | String | 80vh | Altura máxima del bottom sheet |
| dragHandleClass | String | h-1.5 w-12 rounded-full bg-neutral-500 | Clase Tailwind para la barra de arrastre |
| dragPadding | String | py-2 | Clase Tailwind para el padding de la barra de arrastre |
