Command Palette
Modal search and action launcher.
Generated from the package's public source.
API
CommandPaletteEmptyPropsinterface
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Props
class?string
children: Element
CommandPaletteGroupPropsinterface
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Props
class?stringheading?string— Group heading label.
children: Element
CommandPaletteInputPropsinterface
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Props
class?stringonFilter?(value: string) => void— Called on each input change to trigger filtering.placeholder?string— Placeholder text.ref?(el: HTMLInputElement) => voidstyle?string | CSSProperties
CommandPaletteItemPropsinterface
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Props
class?stringdisabled?boolean— Disabled state.onSelect?() => void— Called when the command is executed (Enter or click).textValue?string— Text value for filtering. Defaults to value.valuestring— Unique value/identifier for this command.
children: Element
CommandPaletteListPropsinterface
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Props
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
children: Element
CommandPaletteRootPropsinterface
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Props
class?stringdefaultInputValue?stringdefaultOpen?booleaninputValue?Accessor<string>— Controlled input value.onInputValueChange?(value: string) => voidonOpenChange?(open: boolean, details: ChangeDetails<DisclosureReason>) => voidopen?Accessor<boolean>— Controlled open state.style?string | CSSProperties
children: Element
Emptycomponent
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Empty(props: CommandPaletteEmptyProps): Element
Props
class?string
children: Element
Groupcomponent
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Group(props: CommandPaletteGroupProps): Element
Props
class?stringheading?string— Group heading label.
children: Element
Inputcomponent
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Input(props: CommandPaletteInputProps): Element
Props
class?stringonFilter?(value: string) => void— Called on each input change to trigger filtering.placeholder?string— Placeholder text.ref?(el: HTMLInputElement) => voidstyle?string | CSSProperties
Itemcomponent
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Item(props: CommandPaletteItemProps): Element
Props
class?stringdisabled?boolean— Disabled state.onSelect?() => void— Called when the command is executed (Enter or click).textValue?string— Text value for filtering. Defaults to value.valuestring— Unique value/identifier for this command.
children: Element
Listcomponent
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
List(props: CommandPaletteListProps): Element
Props
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
children: Element
Rootcomponent
@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.
Root(props: CommandPaletteRootProps): Element
Props
class?stringdefaultInputValue?stringdefaultOpen?booleaninputValue?Accessor<string>— Controlled input value.onInputValueChange?(value: string) => voidonOpenChange?(open: boolean, details: ChangeDetails<DisclosureReason>) => voidopen?Accessor<boolean>— Controlled open state.style?string | CSSProperties
children: Element