Skip to content

UIDropdown

With placeholder
With initial value
Disabled
PropTypeDefaultDescription
optionsArray<{ value: string; label: string }>requiredAvailable options
valuestringControlled value
initialValuestringInitial value for uncontrolled mode
placeholderstring"Select option"Placeholder when nothing is selected
disabledbooleanfalseDisables the dropdown
onChange(value: string) => voidCalled when selection changes
import { UIDropdown } from "tango-api";
// Uncontrolled
<UIDropdown
placeholder="Pick one..."
options={frameworks}
onChange={(value) => console.log(value)}
/>
// Controlled
<UIDropdown
value={selected}
options={frameworks}
onChange={setSelected}
/>