Skip to content

blocks/command-menu

@fungi.computer/caps


@fungi.computer/caps / blocks/command-menu

CommandMenuItem = object

Caller-provided command menu item data.

optional description?: string

optional disabled?: boolean

id: string

label: string


CommandMenuProps = Omit<HTMLAttributes<HTMLUListElement>>, "children" | "onSelect"> > & object

Props accepted by CommandMenu.

items: readonly CommandMenuItem[]

onSelect: (id) => void

Called after a non-disabled item is selected.

string

void

optional selected?: string

Caller-owned selected state; distinct from local keyboard focus.

const CommandMenu: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLUListElement>>, "children" | "onSelect"> > & object & RefAttributes<HTMLUListElement>>>>

A single-focus listbox with local navigation and caller-owned selection.