Overview
TheDrawerFooter component provides a pre-styled footer section for drawers. It’s entirely optional—you can build custom footers using regular HTML instead. Commonly used for action buttons, links, or supplementary information.
Props
Additional CSS classes to customize the footer styling.
Usage Examples
Basic Footer with Buttons
Footer with Links
Footer with Actions Snippet
The component supports anactions snippet (though children is more common):
Styled Footer
Complete Form Example
With DrawerHeader
Footer in Scrollable Drawer
Important: Use flexbox layout to keep footer at bottom:Action Buttons Pattern
Default Styling
The footer includes:border-t border-gray-200- Top border separatorp-4- Padding on all sidesmt-auto- Pushes to bottom in flex layouts
Layout Tips
Fixed Footer in Tall Drawer
Use flexbox to ensure footer stays at bottom:Full-Width Actions
Wrap children in container withw-full:
When to Use
UseDrawerFooter when:
- You want consistent footer styling across drawers
- You have action buttons (Cancel, Save, etc.)
- You need a visually separated footer section
- You need complex layouts or custom styling
- You’re using a design system with specific patterns
- The pre-styled footer doesn’t fit your design
Alternative: Custom Footer
You can build footers without this component:Related Components
- DrawerHeader - Optional header component
- DrawerContent - Content container
- Drawer - Main wrapper component
- DrawerVariants - Pre-styled variants