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
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,18 @@
95
95
"defaultValue": "'start'",
96
96
"description": "Whether the \"on\" and \"off\" labels should appear before or after the switch.\n\n**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."
97
97
},
98
+
{
99
+
"name": "loadingLabelDelay",
100
+
"type": "number",
101
+
"defaultValue": "2000",
102
+
"description": "When the switch is in the loading state, this value controls the amount of delay in milliseconds before the word \"Loading\" is announced to screen readers."
103
+
},
104
+
{
105
+
"name": "loadingLabel",
106
+
"type": "string",
107
+
"defaultValue": "'Loading'",
108
+
"description": "The text that is announced to AT such as screen readers when the switch is in a loading state."
* **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
40
*/
36
41
statusLabelPosition?: CellAlignment
42
+
/**
43
+
* If the switch is in the loading state, this value controls the amount of delay in milliseconds before
44
+
* the `loadingLabel` is announced to screen readers.
45
+
* @default 2000
46
+
*/
47
+
loadingLabelDelay?: number
48
+
/** The text to describe what is loading. It should be descriptive and not verbose.
49
+
* This is primarily used for AT (screen readers) to convey what is currently loading.
50
+
*/
51
+
loadingLabel?: string
37
52
/** type of button to account for behavior when added to a form*/
0 commit comments