Documentation Index
Fetch the complete documentation index at: https://mintlify.com/zendeskgarden/website/llms.txt
Use this file to discover all available pages before exploring further.
Basic usage
Control open/close state with a boolean. PassisOpen and onClose to the Drawer.
Component structure
Props
Controls whether the drawer is visible. Manage this with local state.
Callback fired when the user presses Escape or activates the close button. Use this to set
isOpen to false.Enables slide-in and slide-out animations. Defaults to
true.Subcomponents
Drawer.Header
HTML heading element for the panel title (
h1–h6). Defaults to div. Always set a meaningful heading level.Drawer.Body
Scrollable container for the main supplementary content. When the content exceeds the panel height, this region scrolls independently.Drawer.Footer / Drawer.FooterItem
Drawer.Footer is a flex container for action buttons. Wrap each button in a Drawer.FooterItem for correct spacing.
Drawer.Close
An icon button to dismiss the drawer. Automatically receivesaria-label based on the component defaults; override with a custom aria-label if needed.
Accessibility
- When the Drawer opens, focus moves into it so keyboard and screen reader users can immediately access its content.
- Focus is kept inside the Drawer until it is closed (focus trap).
- When the Drawer closes, focus returns to the element that triggered it.
- Use an appropriate heading level on
Drawer.Header(viatag) to ensure correct document outline.