Default (closed)

<Burger />

Opened state

<Burger opened />

Sizes

<Burger size="xs" />
<Burger size="sm" />
<Burger size="md" />
<Burger size="lg" />
<Burger size="xl" />

Custom color

<Burger color="var(--dv-color-blue-filled)" />
<Burger color="var(--dv-color-red-filled)" />

Props

PropTypeDefaultDescription
openedbooleanfalseAnimates lines to × icon and sets aria-expanded
size'xs'|'sm'|'md'|'lg'|'xl'|number—Width/height of the button hit target
colorstring—CSS color applied to the three lines
lineSizenumber—Thickness of each line in pixels
transitionDurationnumber—Duration of the open/close animation in ms
aria-labelstringautoAccessible label; defaults to "Open/Close navigation"
classstring—Additional CSS class names
styleobject—Inline styles