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 1
1
{
2
2
"name" : " @codegouvfr/react-dsfr" ,
3
- "version" : " 0.48.2 " ,
3
+ "version" : " 0.48.3 " ,
4
4
"description" : " French State Design System React integration library" ,
5
5
"repository" : {
6
6
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export namespace ToggleSwitchProps {
30
30
labelPosition ?: "left" | "right" ;
31
31
classes ?: Partial < Record < "root" | "label" | "input" | "hint" , string > > ;
32
32
style ?: CSSProperties ;
33
+ name ?: string ;
33
34
} ;
34
35
35
36
export type Uncontrolled = Common & {
@@ -64,6 +65,7 @@ export const ToggleSwitch = memo(
64
65
onChange,
65
66
inputTitle,
66
67
style,
68
+ name,
67
69
...rest
68
70
} = props ;
69
71
@@ -121,6 +123,7 @@ export const ToggleSwitch = memo(
121
123
id = { inputId }
122
124
title = { inputTitle }
123
125
checked = { props_checked ?? checked }
126
+ name = { name }
124
127
/>
125
128
< label
126
129
className = { cx ( fr . cx ( "fr-toggle__label" ) , classes . label ) }
You can’t perform that action at this time.
0 commit comments