File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/paste-core/components/radio-group/src Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @twilio-paste/radio-group ' : patch
3+ ' @twilio-paste/core ' : patch
4+ ---
5+
6+ [ RadioGroup] Added optional ` value ` string prop which this component needs and is no longer on the extended ` InlineControlGroup ` interface.
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import {RadioContext} from './RadioContext';
77export interface RadioGroupProps extends InlineControlGroupProps {
88 name : string ;
99 onChange : ( value : string ) => void ;
10+ value ?: string ;
1011}
1112
1213const RadioGroup = React . forwardRef < HTMLFieldSetElement , RadioGroupProps > (
@@ -45,6 +46,7 @@ if (process.env.NODE_ENV === 'development') {
4546 RadioGroup . propTypes = {
4647 name : PropTypes . string . isRequired ,
4748 onChange : PropTypes . func . isRequired ,
49+ value : PropTypes . string ,
4850 } ;
4951}
5052
You can’t perform that action at this time.
0 commit comments