Listbox
Single / multi select list, role=listbox
A choice where the options should stay visible — a short list in a sidebar, a filter panel, a settings pane. When space is tight use Select; for a handful of single choices RadioGroup is simpler; to type and filter, Combobox.
Basic
加藤恵
澤村・スペンサー・英梨々
霞ヶ丘詩羽
氷堂美智留
波島出海
加藤恵
澤村・スペンサー・英梨々
霞ヶ丘詩羽
氷堂美智留
波島出海
- One tab stop. Arrows move, Home/End jump, Space or Enter picks, and typing letters jumps to a matching label. Focus starts on the selected option.
multipletoggles each option;rowscaps the height and scrolls.- Inside a Field the field's label names it.
namesubmits one value per selected option.
Usage
ts
import { BlessListbox } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | — | |
name | string | — | submitted with the form, one value per selected option |
options* | BlessOption<T>[] | — | |
multiple | boolean | — | |
disabled | boolean | — | |
label | string | — | |
rows | number | 0 | visible rows before scrolling; 0 = no limit |
modelValue | T | T[] | — |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: T | T[] | undefined] |
Slots
| Name | Scope | Description |
|---|---|---|
default | { option: BlessOption<T>; selected: boolean; } |