Burger
A hamburger menu component that is typically used for mobile or collapsed navigation. It toggles the visibility of a menu.
Usage
Basic usage example to quickly see how the Burger works.
Properties
Interactive configurator to explore customization options for the Burger component.
Size
Color
API References
Styles API
| Styles API | Type | Default | Annotation |
|---|---|---|---|
unstyled? | boolean | false | if true, all default styles will be removed |
size? | string | number | 32 | Controls burger width and height, numbers are converted to rem |
color? | Colors | hsl(var(--color)) |
Props API
| Props API | Type | Default | Annotation |
|---|---|---|---|
onOpenChange? | (open: SetStateAction<boolean>) => void | undefined | Set state of the burger |
open? | boolean | false | State of the burger, when true burger is transformed |
Source Codes
Full working code example, including necessary markup and styles. You can copy and paste this code directly to start using the component immediately.