Drawer

ARIA
RTL

The Drawer component is a panel that slides out from the edge of the screen. It can be useful when you need users to complete a task or view some details without leaving the current page.

Based on Headless UI.

Drawer

Anatomy

<Drawer>
  <Drawer.Panel>...</Drawer.Panel>
  </Drawer.Backdrop>
</Drawer>

Default

Positions

With Backdrop

With Close

Drawer

NameTypeRequiredDefaultDescription
classNamestringNo-Tailwind classes for custom styles
openbooleanYesfalseWhether or not the Drawer is opened
setOpen(value: boolean) => voidYes-Sets open state of the Drawer

Drawer.Panel

NameTypeRequiredDefaultDescription
classNamestringNo-Tailwind classes for custom styles
positiontop | bottom | start | endNoendThe Drawer positions on screen