blocks/command-menu
@fungi.computer/caps / blocks/command-menu
blocks/command-menu
Section titled “blocks/command-menu”Type Aliases
Section titled “Type Aliases”CommandMenuItem
Section titled “CommandMenuItem”CommandMenuItem =
object
Caller-provided command menu item data.
Properties
Section titled “Properties”description?
Section titled “description?”
optionaldescription?:string
disabled?
Section titled “disabled?”
optionaldisabled?:boolean
id:
string
label:
string
CommandMenuProps
Section titled “CommandMenuProps”CommandMenuProps =
Omit<HTMLAttributes<HTMLUListElement>>,"children"|"onSelect"> > &object
Props accepted by CommandMenu.
Type Declaration
Section titled “Type Declaration”items: readonly
CommandMenuItem[]
onSelect
Section titled “onSelect”onSelect: (
id) =>void
Called after a non-disabled item is selected.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
selected?
Section titled “selected?”
optionalselected?:string
Caller-owned selected state; distinct from local keyboard focus.
Variables
Section titled “Variables”CommandMenu
Section titled “CommandMenu”
constCommandMenu:ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLUListElement>>,"children"|"onSelect"> > &object&RefAttributes<HTMLUListElement>>>>
A single-focus listbox with local navigation and caller-owned selection.