API reference: @salmonui/dropdowns/listbox
ListboxItemStateinterface
import type { ListboxItemState } from '@salmonui/dropdowns/listbox';interface ListboxItemState<T> {
readonly item: T;
readonly value: ListboxKey;
readonly label: string;
readonly selected: boolean;
readonly active: boolean;
readonly disabled: boolean;
readonly matches: readonly ListboxMatchRange[];
}
renderItem argument.
| Name | Signature | Description |
|---|---|---|
item | readonly item: T; | |
value | readonly value: ListboxKey; | |
label | readonly label: string; | |
selected | readonly selected: boolean; | |
active | readonly active: boolean; | |
disabled | readonly disabled: boolean; | |
matches | readonly matches: readonly ListboxMatchRange[]; | Highlight ranges of the search text in |