Theme

Edit task details

Open the panel, then close it to return focus to the trigger.

Open task details

Review and update the Q3 roadmap.

CancelSave changes

Placement and size

Choose left, right (default), top, or bottom. Sizes sm, md, and lg control width for side drawers and height for top or bottom drawers.

Drawer or Modal?

Use Drawer for a task related to the page, Modal for a short decision, and a full page for longer workflows.

API reference: <cad-drawer>

close-labelcloseLabelstring'Close drawer'close-on-backdropcloseOnBackdropbooleantrueheadingheadingstring''openopenbooleanfalseplacementplacementCadDrawerPlacement'right'sizesizeCadDrawerSize'md'closeLabelstringclose-labelnocloseOnBackdropbooleanclose-on-backdropyesheadingstringheadingnoopenbooleanopenyesplacementCadDrawerPlacementplacementyessizeCadDrawerSizesizeyescad-drawer-openCustomEventFired after the drawer opens.cad-drawer-closeCustomEventFired after the drawer closes and reports why.(default)Scrollable drawer content.triggerOptional element that opens the drawer when activated.titleDrawer heading. Falls back to the `heading` attribute.footerSupporting actions anchored to the drawer edge.baseNative dialog covering the viewport.bodyScrollable content area.close-buttonExplicit dismiss button.footerOptional action area.handleDecorative bottom-drawer drag affordance.headerHeading and dismiss control.panelDrawer surface.titleVisible heading.triggerTrigger slot container.--cad-drawer-borderPer-instance panel border color.--cad-drawer-sizePer-instance width or height override.--cad-drawer-surfacePer-instance panel surface color.

Accessibility

Background content is inactive and focus stays in the drawer. Escape, the close button, or an enabled backdrop click dismiss it and restore focus. cad-drawer-close reports the dismissal reason.

Back to top