Layout
Burger
A menu button whose three lines fold into a cross. Built into Navbar, and available on its own for custom headers and drawers.
Closed
Installation #
With the Nuxt module, every component is auto-imported — there is nothing to add. In a plain Vue project, import what you use:
Copy
import { JBurger } from '@juxtui/ui'Usage #
Copy
<JBurger v-model="open" controls="site-menu" />Variants & examples #
Opening a sheet#
Pair it with JSheet for a side menu.
API #
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| modelValue | boolean | false | Open state, bound with v-model. |
| controls | string | — | Id of the element it shows and hides (aria-controls). |
| openLabel | string | 'Open menu' | Accessible name while closed. |
| closeLabel | string | 'Close menu' | Accessible name while open. |
| size | 'sm' | 'md' | 'md' | 28 or 34px. |
Events
| Event | Payload | Description |
|---|---|---|
| update:modelValue | boolean | Emitted on click. |
Accessibility #
- A native
<button>witharia-expanded. The icon is decorative; the label names the action. - The fold animation is turned off under reduced motion.
Keyboard #
| Key | Action |
|---|---|
| Enter | Toggles. |
| Space | Toggles. |