UISelectionList
Preview
Section titled “Preview”| Prop | Type | Default | Description |
|---|---|---|---|
items | Array<{ value: string; title: string; subtitle?: string }> | required | Available items |
selected | string[] | required | Currently selected values |
multiple | boolean | false | Allow multiple selections |
onChange | (next: string[]) => void | — | Called with updated selection array |
import { UISelectionList } from "tango-api";
const [selected, setSelected] = useState<string[]>([]);
<UISelectionList multiple items={languages} selected={selected} onChange={setSelected}/>