Use it alone, or as the trigger of a Drawer.
menu-button.tsx
BurgerMenuIcon
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| aria-label | string | — | Defines a string value that labels the current element. The accessible name, the same in both states. Default "Menu". Translate it with the page. | ||||
| class | string | — | |||||
| busy | boolean | — | The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading. | ||||
| glass | "clear""dark""light" | — | |||||
| rounded | "default""full" | — | |||||
| variant | "dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary" | "ghost" | |||||
| size | "icon""icon-lg""icon-sm""icon-xs" | "icon-sm" | The Button icon sizes: 24, 28 (default), 32, or 36px. The bars are 16px (12px on icon-xs). | ||||
| morph | "arrow""x" | "x" | x (default): the bars turn into an X. arrow: an arrow to the inline start. Both close. | ||||
| open | boolean | — | Open (controlled). With onOpenChange. | ||||
| default | boolean | false | Open on the first render (uncontrolled). Default false. | ||||
| on | — | Runs on each press with the next state. Not called when a Base UI trigger owns the state. | |||||
From Base UIButtonBase UI docs | |||||||
| focusable | boolean | false | Whether the button should be focusable when disabled. | ||||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |||||
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |||||
| |||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||







