About Side Panel
Side Panel is a slide-out panel that appears from the right edge of the screen. Use it to display contextual information, detailed views, or supplementary content without navigating away from the current page.Components
- SidePanelContainer - Manages panel state
- SidePanel - Main panel container
- SidePanelHeader - Header section with title
- SidePanelHeaderActions - Action buttons in header
- SidePanelBody - Main content area
- SidePanelFooter - Footer section
- SidePanelButton - Button to trigger panel
- SidePanelBadgeButton - Badge button trigger
- SidePanelPushContentWrapper - Pushes content when panel opens
- useSidePanelState - State management hook
Installation
Usage
Props
SidePanelContainer
SidePanel
SidePanelButton
Accepts all Button props.SidePanelBody
SidePanelFooter
State Management
UseuseSidePanelState hook:
Push Content Wrapper
UseSidePanelPushContentWrapper to push page content when panel opens:
Footer Variants
Default Footer
For standard actions:Chat Footer
For AI chat interfaces:Accessibility
- Side Panel has proper ARIA labeling
- Focus is trapped within the panel when open
- Escape key closes the panel
- Close button is keyboard accessible
- Panel state is announced to screen readers