-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(SegmentedControl): allow for passing stricter type for options #7050
feat(SegmentedControl): allow for passing stricter type for options #7050
Conversation
Generate changelog in
|
commit list was funky, replacement: #7051 |
Fixes #0000
Checklist
Changes proposed in this pull request:
Allow for stricter type on
SegmentedControl
than juststring
, which reduces the need for type casting in many cases (such asonChange
call).For example, you can still have just
as before, for general string Options, or you can have
to make sure that all passed option values, and the
onChange
, have theOptionsEnum
type.Reviewers should focus on:
Improved type casting abilities, and mainly, the reduction of having to type cast.
Screenshot
No visual changes.