Vault
March 31, 2025A bottom sheet component with drag gesture support that slides up from the bottom of the screen. Perfect for displaying additional content, forms, or navigation options without leaving the current view.
Features
- Draggable interface
- Smooth animations
- Content scrolling
- Interactive notch
API Reference
Prop | Default | Type | Description |
---|---|---|---|
label | ’Vault’ | string | Text for the button that opens the Vault component |
labelClass | - | string | Additional CSS classes for the button |
vaultClass | - | string | Additional CSS classes for the main container |
footerClass | - | string | Additional CSS classes for the Vault footer |
notchClass | - | string | Additional CSS classes for the drag indicator (notch) |
easeOpen | ’power4.out’ | string | GSAP animation function for opening the Vault |
easeStretch | ’elastic(1, 0.75)‘ | string | GSAP animation function for stretching effect |
durationOpen | 0.4 | number | Duration (in seconds) of the opening animation |
durationStretch | 0.5 | number | Duration (in seconds) of the stretching animation |