File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @codegouvfr/react-dsfr" ,
3- "version" : " 0.48.2 " ,
3+ "version" : " 0.48.3 " ,
44 "description" : " French State Design System React integration library" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export namespace ToggleSwitchProps {
3030 labelPosition ?: "left" | "right" ;
3131 classes ?: Partial < Record < "root" | "label" | "input" | "hint" , string > > ;
3232 style ?: CSSProperties ;
33+ name ?: string ;
3334 } ;
3435
3536 export type Uncontrolled = Common & {
@@ -64,6 +65,7 @@ export const ToggleSwitch = memo(
6465 onChange,
6566 inputTitle,
6667 style,
68+ name,
6769 ...rest
6870 } = props ;
6971
@@ -121,6 +123,7 @@ export const ToggleSwitch = memo(
121123 id = { inputId }
122124 title = { inputTitle }
123125 checked = { props_checked ?? checked }
126+ name = { name }
124127 />
125128 < label
126129 className = { cx ( fr . cx ( "fr-toggle__label" ) , classes . label ) }
You can’t perform that action at this time.
0 commit comments