Components

← All components

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

tentative
  • Choosing one value by searching for it — a Hugging Face model or dataset ID, a flag name.
  • Name what is searched in loadingText and emptyText (“Searching models…”); the defaults are neutral on purpose.
  • Keep the typed value on every error; pair invalid with the surrounding Field's error.
  • Give a check that couldn't run (a network failure) a retry, so the user can try again without retyping.
  • Control open only when something outside decides it (a console state showing the suggestions); otherwise let the Combobox own it.
  • Don't hard-code one product's search copy in the defaults.
  • Don't use retry for a definite answer (not found, unsupported) — retrying won't change it.
  • 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