Skip to content

Commit 54b392d

Browse files
committed
updated prop name to match -- prop mismatch error
1 parent 9608bea commit 54b392d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react/src/ToggleSwitch/ToggleSwitch.docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"description": "<div>Whether the \"on\" and \"off\" labels should appear before or after the switch.</div> <div> <Text fontWeight=\"bold\">This should only be changed when the switch's alignment needs to be adjusted.</Text> For example: It needs to be left-aligned because the label appears above it and the caption appears below it. </div>"
9797
},
9898
{
99-
"name": "type",
99+
"name": "buttonType",
100100
"type": "'button' | 'submit' | 'reset'",
101101
"defaultValue": "'button'",
102102
"description": "<div>As it’s part of form behavior, this controls whether the button is of type button, submit, or reset.</div>"

packages/react/src/ToggleSwitch/ToggleSwitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface ToggleSwitchProps extends Omit<React.HTMLAttributes<HTMLDivElem
3535
*/
3636
statusLabelPosition?: CellAlignment
3737
/** type of button to account for behavior when added to a form*/
38-
type?: 'button' | 'submit' | 'reset'
38+
buttonType?: 'button' | 'submit' | 'reset'
3939
}
4040

4141
const sizeVariants = variant({

0 commit comments

Comments
 (0)