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