BetaBeta pública — Consulta las notas de lanzamiento
Documentación

Command Palette

Modal search and action launcher.

Paquete
@solidiom/command-palette
Versión
0.0.1-next.0
Estado
stable

Generado a partir del código fuente público del paquete.

API

CommandPaletteEmptyPropsinterfaz

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

Propiedades

class?
string

hijos: Element

Ver código fuente

CommandPaletteGroupPropsinterfaz

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

Propiedades

class?
string
heading?
string — Group heading label.

hijos: Element

Ver código fuente

CommandPaletteInputPropsinterfaz

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

Propiedades

class?
string
onFilter?
(value: string) => void — Called on each input change to trigger filtering.
placeholder?
string — Placeholder text.
ref?
(el: HTMLInputElement) => void
style?
string | CSSProperties

Ver código fuente

CommandPaletteItemPropsinterfaz

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

Propiedades

class?
string
disabled?
boolean — Disabled state.
onSelect?
() => void — Called when the command is executed (Enter or click).
textValue?
string — Text value for filtering. Defaults to value.
value
string — Unique value/identifier for this command.

hijos: Element

Ver código fuente

CommandPaletteListPropsinterfaz

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

Propiedades

class?
string
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties

hijos: Element

Ver código fuente

CommandPaletteRootPropsinterfaz

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

Propiedades

class?
string
defaultInputValue?
string
defaultOpen?
boolean
inputValue?
Accessor<string> — Controlled input value.
onInputValueChange?
(value: string) => void
onOpenChange?
(open: boolean, details: ChangeDetails<DisclosureReason>) => void
open?
Accessor<boolean> — Controlled open state.
style?
string | CSSProperties

hijos: Element

Ver código fuente

Emptycomponente

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

                        Empty(props: CommandPaletteEmptyProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

Groupcomponente

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

                        Group(props: CommandPaletteGroupProps): Element
                      

Propiedades

class?
string
heading?
string — Group heading label.

hijos: Element

Ver código fuente

Inputcomponente

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

                        Input(props: CommandPaletteInputProps): Element
                      

Propiedades

class?
string
onFilter?
(value: string) => void — Called on each input change to trigger filtering.
placeholder?
string — Placeholder text.
ref?
(el: HTMLInputElement) => void
style?
string | CSSProperties

Ver código fuente

Itemcomponente

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

                        Item(props: CommandPaletteItemProps): Element
                      

Propiedades

class?
string
disabled?
boolean — Disabled state.
onSelect?
() => void — Called when the command is executed (Enter or click).
textValue?
string — Text value for filtering. Defaults to value.
value
string — Unique value/identifier for this command.

hijos: Element

Ver código fuente

Listcomponente

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

                        List(props: CommandPaletteListProps): Element
                      

Propiedades

class?
string
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties

hijos: Element

Ver código fuente

Rootcomponente

@solidiom/command-palette — Headless modal command palette primitive. Parts: Root, Input, List, Group, Item, Empty.

                        Root(props: CommandPaletteRootProps): Element
                      

Propiedades

class?
string
defaultInputValue?
string
defaultOpen?
boolean
inputValue?
Accessor<string> — Controlled input value.
onInputValueChange?
(value: string) => void
onOpenChange?
(open: boolean, details: ChangeDetails<DisclosureReason>) => void
open?
Accessor<boolean> — Controlled open state.
style?
string | CSSProperties

hijos: Element

Ver código fuente