Closed mikkel-ol closed 2 months ago
SegmentedControl should be generic to allow narrow types to be passed to items and value while being passed back to segmentSelect()
SegmentedControl
items
value
segmentSelect()
Let component SegmentedControl be generic but extend existing and required type SegmentItem and use the generic for items and output segmentSelect
SegmentItem
segmentSelect
No
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
The contributor who wants to implement this issue should:
Once the issue has been implemented and is ready for review:
Describe the enhancement
SegmentedControl
should be generic to allow narrow types to be passed toitems
andvalue
while being passed back tosegmentSelect()
Describe the solution you'd like
Let component
SegmentedControl
be generic but extend existing and required typeSegmentItem
and use the generic foritems
and outputsegmentSelect
Have you considered any alternatives?
No
Are there any additional context?
No
Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Refinement
Implementation
The contributor who wants to implement this issue should:
Review
Once the issue has been implemented and is ready for review: