-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve RadioButton and RadioButtonGroup types (#16648)
Changes: - Export prop interfaces for `RadioButton` and `RadioButtonGroup`. - Narrow `onChange` argument type for `RadioButtonGroupProps`. - Reference `RadioButtonProps` for `RadioButtonGroup` types where we are expecting a `RadioButton` value. - Add missing types for component `refs` and event handlers in `RadioButton` and `RadioButtonGroup`. - Simplify `getRadioButtons()` with a type assertion on `children` argument and refactoring to use an early return statement.
- Loading branch information
Showing
4 changed files
with
118 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters