Modal
Dismissible overlay for short tasks, forms, or extra detail.
Edge panel for secondary tasks. Floating sheet inset from the opening edge.
Edge panel. Not Modal. Not AlertDialog.
Bottom sheet for a delivery window, medium size, no close button. Overlay click and Escape dismiss. Variants shows each side and size.
Use Drawer for a sheet or side panel. Size is sm, md, or lg for left/right/bottom. Use lg when the body has DatePicker or other overlays that must fit without horizontal scroll. Compose kit RadioGroup for the slots and kit Buttons in the footer. Use Modal for a centered short task. Use AlertDialog when they must choose.
import { Drawer } from "agentic-ds-kit";From contracts/drawer.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| open | boolean | Yes | — | — |
| title | string | Yes | — | — |
| description | string | No | — | — |
| eyebrow | string | No | — | Short area name in the header row, 12px, like Billing · Invoices. Caller-provided. |
| tone | enum | No | neutral | Tone icon (16px, aria-hidden) and status word from KitLabels (info, success, warning, danger) before the eyebrow, so status is never colour alone. neutral shows the eyebrow only. neutral | info | success | warning | danger |
| side | right | left | bottom | top | No | right | Floating sheet with radius-surface-lg. Right/left inset from top, bottom, and the opening edge. Bottom is centered. Top insets from top, left, and right. Not a flush full-bleed bar. Below 480px (30rem) left and right open as the bottom sheet (full width inside the 16px inset, no handle, no swipe). |
| size | sm | md | lg | No | md | Width for left/right/bottom sheets (layout-drawer-*). Use lg when the body has DatePicker or other overlays that must fit without horizontal scroll. Top stays full width. |
| fullScreenBelow | sm | md | No | — | Opt-in. Below --grid-breakpoint-sm (40rem) or -md (64rem) a left or right Drawer fills the screen (no inset, radius or border) instead of becoming the bottom sheet. For a dense panel such as a mapping table. Default: off. |
| showClose | boolean | No | true | — |
| onClose | function | Yes | — | — |
| children | slot | Yes | — | Body. Kit blocks that know the Drawer adapt: SideNav fills the body (no rail width, border or card frame) and stays open. |
| footer | slot | No | — | kit Buttons. Left/right: one row, actions on the right (Cancel, then one primary), size sm. Bottom and the 480px sheet stack them full width, actions first, then footerStart; on bottom use shape=pill and block. |
| footerStart | slot | No | — | Left of the footer actions, first in the footer tab order: an Ask Button (appearance outline, mode neutral, size sm, iconStart MessageCircle) or a count like 6 of 6 selected. Labels are caller-provided. |
Dismissible overlay for short tasks, forms, or extra detail.
Must-choose overlay that interrupts until the user cancels or confirms.
Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).
Docs and catalog sidebar only: title, grouped text-only links, optional decorative icons and muted counts on group and subgroup headers only, an active page pill and optional footer links.