CodeAI

Drawer

Not in Production

Bottom sheet that slides over page content without dimming or blocking it.

Appearance

Content

Layout & behavior

Props — Drawer
View MUI docs
PropTypeDescription
type"textOnly" | "customContent"Layout variant for drawer body.
titleReactNodeSheet heading.
descriptionReactNodeSupporting text below the title.
hasDescriptionbooleanShow the description block.
hasActionRowbooleanShow the footer action row.
primaryActionLabelReactNodePrimary button label.
secondaryActionLabelReactNodeSecondary button label.
isDismissiblebooleanShow close control.
onClose() => voidCalled when the drawer is dismissed.
openbooleanControls sheet visibility.
childrenReactNodeCustom body content when type is customContent.
surfaceOnlybooleanRender the sheet surface without open/close behavior.