s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Feedback and overlays

Drawer

No summary has been written for Drawer. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { Drawer } from '@happyvertical/smrt-ui/feedback';
Import path
@happyvertical/smrt-ui/feedback
Props
11
Props described
11 of 11
Bindable state
0
Callback events
1
Verified release
0.44.0

Props

NameTypeRequiredDescription
openbooleanNoWhether the drawer is open (bindable).
titlestringNoTitle displayed in the drawer header.
side'start' | 'end'NoSide of screen where drawer slides from (start or end).
size'sm' | 'md' | 'lg' | 'xl'NoDrawer width size: sm, md, lg, or xl.
showClosebooleanNoWhether a close button appears in the header.
closeOnBackdropbooleanNoWhether clicking the backdrop closes the drawer.
childrenSnippetNoMain content rendered inside the drawer body.
headerSnippetNoOptional custom snippet for the drawer header.
footerSnippetNoOptional custom snippet for the drawer footer.
onclose() => voidNoCallback when the drawer is closed.
ariaLabelstringNoAccessibility label for the drawer dialog.

Bindable state

This component has no bindable public state.

Callback events

  • onclose() => void

Examples and explanation