Installation
Usage
Props
Main title displayed in the drawer header
Description text displayed below the title
Text for the primary action button
Text for the secondary (close) button
Callback function triggered when primary button is clicked
Callback function triggered when secondary button is clicked
Original price to display (shown with strikethrough)
Discounted price to display (shown prominently)
Features
- Smooth Animations: Spring-based slide-up animation with staggered content reveal
- Price Display: Built-in price tag component with original and discounted prices
- Gradient Effects: Shimmer effect on the primary button for visual appeal
- Icon Animation: Animated Fingerprint icon with shake effect
- Responsive Design: Adapts to different screen sizes
- Accessible: Proper ARIA labels and keyboard navigation
Example with Custom Content
Animation Details
The drawer uses Framer Motion with carefully tuned spring animations:- Container: Slides up from bottom with fade-in and 3D rotation effect
- Content: Staggered animation with 70ms delay between items
- Button Shimmer: Hover-triggered shine effect that sweeps across
- Icon: Continuous shake animation with 2-second intervals
Dependencies
motion(Framer Motion)lucide-react(Fingerprint icon)next/imagenext/link@/components/ui/button@/components/ui/drawer