Status: needs proposalType: feature requesthelp wanted
仓库指标
- 星标
- (20,263 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Feature request
Would be nice to have a selection UI that works with enums. SegmentedControl is nice but the callback is always string
Examples
const options: {label: string, value: MyEnum} = {...};
const handleValueChange = (newValue: MyEnum) => {...};
...
<SegmentedControl<MyEnum> options={options} onValueChange={handleValueChange}>
...
</SegmentedControl>