Hygge-UI

Drawer

Used to render a content that slides in from the side of the screen.

Source

Examples

Sizes

Use the size prop to change the size of the drawer component.

Context

Use the DrawerContext component to access the drawer state and methods from outside the drawer.

Placement

Use the placement prop to change the placement of the drawer component.

Initial Focus

Use the initialFocusEl prop to set the initial focus of the drawer component.

Header Actions

Here's an example of rendering actions in the header of the drawer component.