Burger
Open/close navigation button
Import
Source
Docs
Package
Usage
Burger
component renders open/close menu button.
Set opened
and onClick
props to control component state.
If opened
prop is set, cross will be rendered, otherwise – burger.
Size
Change lines size
Line size
Get element ref
Accessibility
To make Burger
accessible for screen readers, you need to either set aria-label
or
use VisuallyHidden component: