Skip to content

Commit 7bf3603

Browse files
committed
2 parents 78ba792 + 7d2c289 commit 7bf3603

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/ToggleSwitch.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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)}

0 commit comments

Comments
 (0)