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'|numberWidth/height of the button hit target
colorstringCSS color applied to the three lines
lineSizenumberThickness of each line in pixels
transitionDurationnumberDuration of the open/close animation in ms
aria-labelstringautoAccessible label; defaults to "Open/Close navigation"
classstringAdditional CSS class names
styleobjectInline styles