@aria-ui/listbox
Listbox
ListboxElement
A custom Listbox element.
Properties: ListboxProps
new ListboxElement(props?: Partial<ListboxProps>): ListboxElement
ListboxProps
Property | Type | Description |
---|
filter | (options : Object ) => boolean | The filter function to determine if an item should be shown in the listbox.
By default, a simple case-insensitive substring match is used. |
query | string | The query string to filter the listbox items.
Default
"" |
selectionMode | "multiple" | "single" | Listbox selection mode
Default
"single" |
useListbox()
function useListbox(
element: ConnectableElement,
props?: Partial<ListboxProps>,
): SingalState<Readonly<ListboxProps>>;
ListboxItem
ListboxItemElement
A custom ListboxItem element.
Properties: ListboxItemProps
new ListboxItemElement(props?: Partial<ListboxItemProps>): ListboxItemElement
ListboxItemProps
Property | Type |
---|
value | null | string |
useListboxItem()
function useListboxItem(
element: ConnectableElement,
props?: Partial<ListboxItemProps>,
): SingalState<Readonly<ListboxItemProps>>;