Combobox
src/lib/components/combobox.tsx·{ value, label } options · size sm/md/lg · search · keyboard selection · loading · no results · error · disabled · readOnly (derived from TextInput and Select)
Guide
tentativeWhen to use
- Choosing one value by searching for it — a Hugging Face model or dataset ID, a flag name.
Do
- Name what is searched in
loadingTextandemptyText(“Searching models…”); the defaults are neutral on purpose. - Keep the typed value on every error; pair
invalidwith the surrounding Field'serror. - Give a check that couldn't run (a network failure) a
retry, so the user can try again without retyping. - Control
openonly when something outside decides it (a console state showing the suggestions); otherwise let the Combobox own it.
Don't
- Don't hard-code one product's search copy in the defaults.
- Don't use
retryfor a definite answer (not found, unsupported) — retrying won't change it.
Open
- Which Hugging Face outcomes can be told apart, and so which get a Retry, waits on Bam (plan, Bam 1).
Related: Select, TextInput, FieldSources: src/lib/components/combobox.tsx · docs/product/configuration-redesign-plan.md · docs/product/prd-01-inference-custom-configuration.md
size=sm empty
size=sm selected
size=sm loading
size=sm no results
size=sm error
size=sm disabled
size=sm readOnly
size=md empty
size=md selected
size=md loading
size=md no results
size=md error
size=md disabled
size=md readOnly
size=lg empty
size=lg selected
size=lg loading
size=lg no results
size=lg error
size=lg disabled
size=lg readOnly