Skip to main content
Version: 3.0.0-beta

Function: Drawer()

Drawer(__namedParameters): Element

This component is in charge of rendering the drawer. If you add this component under your Scaffold, it will be rendered as a drawer, and the open and close functionality will be handled automatically. If you want to customise the drawer, you can create your own component and pass it as a child. For custom drawers, you can use the useApp to open and close the drawer.

Parameters​

• __namedParameters

• __namedParameters.children?: ReactNode

• __namedParameters.className?: string

• __namedParameters.style?: CSSProperties

Returns​

Element

Defined in​

packages/firecms_core/src/app/Drawer.tsx:11

Sign up to our newsletter to get the latest news and updates. No spam!