We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67462ba commit 967791dCopy full SHA for 967791d
src/ToggleSwitch.tsx
@@ -30,6 +30,7 @@ export namespace ToggleSwitchProps {
30
labelPosition?: "left" | "right";
31
classes?: Partial<Record<"root" | "label" | "input" | "hint", string>>;
32
style?: CSSProperties;
33
+ name?: string;
34
};
35
36
export type Uncontrolled = Common & {
@@ -64,6 +65,7 @@ export const ToggleSwitch = memo(
64
65
onChange,
66
inputTitle,
67
style,
68
+ name,
69
...rest
70
} = props;
71
@@ -121,6 +123,7 @@ export const ToggleSwitch = memo(
121
123
id={inputId}
122
124
title={inputTitle}
125
checked={props_checked ?? checked}
126
+ name={name}
127
/>
128
<label
129
className={cx(fr.cx("fr-toggle__label"), classes.label)}
0 commit comments