You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react/src/ToggleSwitch/ToggleSwitch.docs.json
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,13 @@
94
94
"type": "'start' | 'end'",
95
95
"defaultValue": "'start'",
96
96
"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>"
97
+
},
98
+
{
99
+
"name": "buttonType",
100
+
"type": "'button' | 'submit' | 'reset'",
101
+
"defaultValue": "'button'",
102
+
"description": "<div>As it’s part of form behavior, this controls whether the button is of type button, submit, or reset.</div>"
* **This should only be changed when the switch's alignment needs to be adjusted.** For example: It needs to be left-aligned because the label appears above it and the caption appears below it.
35
35
*/
36
36
statusLabelPosition?: CellAlignment
37
+
/** type of button to account for behavior when added to a form*/
0 commit comments