@drawerly/react / ReactDrawerOptions
ReactDrawerOptions
Drawer options for the React adapter.
Extends
Properties
ariaDescribedBy?
ts
optional ariaDescribedBy: string;ARIA describedby id for the drawer panel.
Inherited from
ariaLabel?
ts
optional ariaLabel: string;ARIA label for the drawer panel.
Inherited from
ariaLabelledBy?
ts
optional ariaLabelledBy: string;ARIA labelledby id for the drawer panel.
Inherited from
closeOnBackdropClick?
ts
optional closeOnBackdropClick: DrawerPredicate<ReactDrawerOptions>;Whether clicking the backdrop closes the drawer.
Default Value
ts
trueInherited from
DrawerOptions.closeOnBackdropClick
closeOnEscapeKey?
ts
optional closeOnEscapeKey: DrawerPredicate<ReactDrawerOptions>;Whether pressing Escape closes the drawer.
Default Value
ts
trueInherited from
DrawerOptions.closeOnEscapeKey
component?
ts
optional component: ComponentType<any>;Component rendered inside the drawer panel.
componentProps?
ts
optional componentProps: Record<string, unknown>;Props passed to the rendered component.
dataAttributes?
ts
optional dataAttributes: Record<`data-${string}`, string | number | boolean | null | undefined>;Extra data attributes applied to the overlay element.
Inherited from
drawerKey
ts
drawerKey: string;Unique key identifying the drawer instance.
Inherited from
placement?
ts
optional placement: DrawerPlacement;Drawer placement.
Default Value
ts
'right'