Sheet
Extends the Dialog component to display content that complements the main content of the screen.
Usage
The Sheet component provides a way to show complementary content in a sliding panel. It supports different positions, accessibility features, and customizable content.
Sheet Props
Prop | Type | Default |
---|---|---|
children | ReactNode | - |
ariaLabel | string | - |
Sheet.Content Props
Prop | Type | Default |
---|---|---|
side | "top" | "right" | "bottom" | "left" | - |
close | boolean | - |
ariaLabel | string | - |
ariaDescription | string | - |
children | ReactNode | - |
Sheet.Title Props
- Inherits all HTML heading element props
Sheet.Description Props
- Inherits all HTML paragraph element props
Examples
Basic
Positioning
The Sheet can slide in from different sides of the screen.
Accessibility
Sheet components are built with proper accessibility features following WAI-ARIA guidelines:
- Uses semantic HTML elements for proper structure
- Dismiss button includes
aria-label
andaria-description
for screen readers - Interactive elements are keyboard accessible