Positions

import { Drawer } from '@davaux/ui'

<Drawer triggerLabel="Left"   title="Left Drawer"   position="left" body="..." />
<Drawer triggerLabel="Right"  title="Right Drawer"  position="right" body="..." />
<Drawer triggerLabel="Top"    title="Top Drawer"    position="top" body="..." />
<Drawer triggerLabel="Bottom" title="Bottom Drawer" position="bottom" body="..." />

Sizes

<Drawer triggerLabel="Small"  size="sm" title="Small drawer" body="..." />
<Drawer triggerLabel="Medium" size="md" title="Medium drawer" body="..." />
<Drawer triggerLabel="Large"  size="lg" title="Large drawer" body="..." />

Props

PropTypeDefaultDescription
openedbooleanfalseInitial open state (SSR)
titlestringDrawer header title
bodystring''Drawer body text
triggerLabelstringRenders a built-in trigger button
position'left'|'right'|'top'|'bottom''left'Edge the drawer slides in from
size'xs'|'sm'|'md'|'lg'|'xl'|'full''md'Width (or height for top/bottom) of the drawer