Component docs
Loading
"use client";
import { MenuList } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
autoFocus | boolean | "first" | "last" | — | Focus the first or last item when the list mounts. |
items | readonly MenuAction[] | — | Items to render. |
loop | boolean | true | Wrap ArrowUp/ArrowDown at the ends (default true). |
onValueChange | (value: string) => void | — | Called with the new value (only when it changes). |
value | string | — | Current value (controlled); null where it means "nothing selected". |
autoFocusboolean | "first" | "last"
Focus the first or last item when the list mounts.
itemsreadonly MenuAction[]
Items to render.
loopdefault trueboolean
Wrap ArrowUp/ArrowDown at the ends (default true).
onValueChange(value: string) => void
Called with the new value (only when it changes).
valuestring
Current value (controlled); null where it means "nothing selected".
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<MenuList><MenuItem /></MenuList>