A side panel component that slides in from the screen edge. Perfect for navigation menus, filter panels, settings drawers, and detail views.
Installation
CLI
Install the component using the StarUI CLI:
star add sheetExamples
Shopping Cart
Right-side cart drawer with product items and checkout actions
Filter Panel
Left-side filter drawer for product search with multiple filter options
Settings Drawer
Right-side settings panel with user preferences and toggles
Notification Panel
Top-sliding notification panel with action buttons and dismissible items
Action Sheet
Bottom-sliding mobile-friendly action sheet with contextual options
Contact Form
Complete contact form in a right-side sheet with validation
Sheet Sizes
Different sheet sizes for various content requirements
Different sheet sizes for various content needs:
API Reference
| Component | Description |
|---|---|
Sheet |
Root container that manages open state via Datastar signal |
SheetTrigger |
Button that opens the sheet |
SheetContent |
Panel container; supports side and size for placement and dimensions |
SheetHeader |
Header layout area for title and description |
SheetTitle |
Accessible title linked to content |
SheetDescription |
Supplementary description text |
SheetFooter |
Footer area for actions |
SheetClose |
Action that closes the sheet |