Component docs
Loading
import { MenuItem } from "@pixxl-tools/components";
// In Server Components:
import { MenuItem } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | — | Render the single child element instead, with this component's props, classes, handlers and ref merged in. |
checked | boolean | — | Checked state for role="menuitemcheckbox" / "menuitemradio". |
tone | MenuItemTone | — | danger for destructive commands. |
asChildboolean
Render the single child element instead, with this component's props, classes, handlers and ref merged in.
checkedboolean
Checked state for role="menuitemcheckbox" / "menuitemradio".
toneMenuItemTone
danger for destructive commands.
Other props are passed to the root element (ButtonHTMLAttributes<HTMLButtonElement>), including className, style, id and aria-* attributes.
<MenuItem>Copy</MenuItem>