Skip to content

Drawer properties

Summary


Props table


Parameter
Type
Default
left | right | top | bottom | top-left | top-right | bottom-left | bottom-right
left
() => void
() => {}
(JSX.Element | string) | (JSX.Element|string`)[]
/
boolean
true


Props list



position

Type
Default
left | right | top | bottom | top-left | top-right | bottom-left | bottom-right
left


Drawer position, relative to the entire window



onClose

Type
Default
() => void
() => {}


callback triggered when Drawer is closed



children

Type
Default
(JSX.Element | string) | (JSX.Element|string`)[]
/


Drawer content



closeOnClickOutside

Type
Default
boolean
true


If false, the drawer won't be closed when clicking outside of it