-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
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>JaafarRammal and rallelind