UISelect
Preview
Section titled “Preview”| Prop | Type | Default | Description |
|---|---|---|---|
options | Array<{ value: string; label: string }> | required | Available options |
value | string | — | Currently selected value |
onChange | (value: string) => void | — | Called when selection changes |
import { UISelect } from "tango-api";
<UISelect options={[ { value: "asc", label: "Ascending" }, { value: "desc", label: "Descending" }, ]} value={sortOrder} onChange={setSortOrder}/>