Calm motion: animations on this site only fade, with no movement
Model picker
A select for a model, with a note, marks, and tags
Lets a person choose the model that answers, next to the prompt input. Each model shows a short note, how fast it is, and how much it costs. For a plain list of choices, use the select.
Basic
Choose a model
SwiftQuick answers for short questionsspeed 3 of 3cost 1 of 3
StudiodefaultGood at show notes and titlesspeed 2 of 3cost 2 of 3
DeepvisionnewReads whole transcripts and imagesspeed 1 of 3cost 3 of 3
LegacyTurned off for this workspace
Model id: studio
modelsis a list of models. Each model has anidand aname. It can also have adescription, aspeedand acostfrom 1 to 3,tags, anddisabled.v-modelis the id of the chosen model. With no model, the button says "Choose a model".- A click on the button opens a listbox in a popover. The keyboard works as in the listbox: arrow keys move, and Enter or Space chooses. A choice closes the popover.
- Speed and cost show as three dots. Screen readers hear them in words, such as "speed 2 of 3".
- Change the words with
labelsor a label pack:label,choose, andspeedandcost(functions of the level).
Usage
ts
import { BlessModelPicker } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
models* | BlessModel[] | — | |
labels | Partial<{ label: string; choose: string; speed: (level: number) => string; cost: (level: number) => string; }> | — | |
modelValue | string | — | the id of the chosen model |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: string | undefined] |