jsswift 1.0.44 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/base.css +2 -137
- package/dist/css/fonts-material.css +7 -0
- package/dist/css/fonts-nunito.css +134 -0
- package/dist/css/min-ui.css +1 -1
- package/dist/css/ui.css +2 -137
- package/dist/css/ui.min.css +1 -1
- package/dist/documentions/AI.md +85 -0
- package/dist/documentions/README.md +4 -0
- package/dist/documentions/ai-development.md +3 -1
- package/dist/documentions/application-rules.md +12 -0
- package/dist/documentions/components/alert.md +29 -493
- package/dist/documentions/components/app-shell.md +37 -524
- package/dist/documentions/components/avatar.md +47 -575
- package/dist/documentions/components/badge.md +27 -461
- package/dist/documentions/components/banner.md +35 -535
- package/dist/documentions/components/breadcrumbs.md +35 -518
- package/dist/documentions/components/btn.md +19 -418
- package/dist/documentions/components/card-body.md +11 -328
- package/dist/documentions/components/card-footer.md +15 -367
- package/dist/documentions/components/card-header.md +15 -367
- package/dist/documentions/components/card.md +48 -596
- package/dist/documentions/components/checkbox.md +25 -456
- package/dist/documentions/components/chip.md +16 -393
- package/dist/documentions/components/col.md +57 -612
- package/dist/documentions/components/container.md +40 -535
- package/dist/documentions/components/context-menu.md +60 -696
- package/dist/documentions/components/date.md +56 -673
- package/dist/documentions/components/dialog.md +67 -628
- package/dist/documentions/components/drawer.md +48 -616
- package/dist/documentions/components/empty-state.md +28 -477
- package/dist/documentions/components/footer.md +42 -586
- package/dist/documentions/components/form-field.md +40 -568
- package/dist/documentions/components/form.md +7 -321
- package/dist/documentions/components/grid-col.md +42 -542
- package/dist/documentions/components/grid.md +40 -542
- package/dist/documentions/components/header.md +38 -547
- package/dist/documentions/components/icon.md +17 -370
- package/dist/documentions/components/input.md +57 -619
- package/dist/documentions/components/item.md +37 -533
- package/dist/documentions/components/kpi.md +34 -519
- package/dist/documentions/components/layout.md +81 -811
- package/dist/documentions/components/list.md +19 -405
- package/dist/documentions/components/loading-bar.md +58 -679
- package/dist/documentions/components/menu.md +62 -710
- package/dist/documentions/components/notify.md +34 -525
- package/dist/documentions/components/page.md +35 -526
- package/dist/documentions/components/pagination.md +39 -531
- package/dist/documentions/components/parallax.md +50 -633
- package/dist/documentions/components/popover.md +55 -661
- package/dist/documentions/components/progress.md +39 -554
- package/dist/documentions/components/radio.md +27 -470
- package/dist/documentions/components/rating.md +41 -574
- package/dist/documentions/components/route-tab.md +30 -491
- package/dist/documentions/components/row.md +35 -507
- package/dist/documentions/components/search.md +62 -723
- package/dist/documentions/components/select.md +67 -660
- package/dist/documentions/components/separator.md +7 -321
- package/dist/documentions/components/slider.md +49 -631
- package/dist/documentions/components/spacer.md +6 -314
- package/dist/documentions/components/spinner.md +25 -440
- package/dist/documentions/components/stat.md +32 -505
- package/dist/documentions/components/tab-panel.md +40 -563
- package/dist/documentions/components/table.md +76 -657
- package/dist/documentions/components/tabs.md +36 -538
- package/dist/documentions/components/time.md +29 -491
- package/dist/documentions/components/toggle.md +31 -498
- package/dist/documentions/components/toolbar.md +52 -640
- package/dist/documentions/components/tooltip.md +35 -535
- package/dist/documentions/getting-started.md +27 -0
- package/dist/documentions/knowledge-map.json +19 -1
- package/dist/documentions/ui/common-props.md +301 -0
- package/dist/jsswift.js +10543 -14102
- package/dist/jsswift.min.js +3 -3
- package/dist/min-jsswift.js +3 -3
- package/dist/tabler.js +7 -0
- package/package.json +6 -2
|
@@ -1,515 +1,48 @@
|
|
|
1
1
|
# Toggle
|
|
2
2
|
|
|
3
|
-
Exact JSswift UI
|
|
3
|
+
Exact JSswift UI contract. Shared definitions listed in `commonProps` are in [common props](../ui/common-props.md); all component-specific props, slots, events, and methods are below.
|
|
4
4
|
|
|
5
5
|
```json
|
|
6
6
|
{
|
|
7
7
|
"signature": "_.Toggle(...children) | _.Toggle(props, ...children)",
|
|
8
8
|
"props": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
"
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "Semantic color name used to style the component.",
|
|
30
|
-
"default": null,
|
|
31
|
-
"values": [
|
|
32
|
-
"primary",
|
|
33
|
-
"secondary",
|
|
34
|
-
"success",
|
|
35
|
-
"warning",
|
|
36
|
-
"danger",
|
|
37
|
-
"info",
|
|
38
|
-
"light",
|
|
39
|
-
"dark"
|
|
40
|
-
],
|
|
41
|
-
"category": "style"
|
|
42
|
-
},
|
|
43
|
-
"outline": {
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"description": "Uses outlined visual style.",
|
|
46
|
-
"default": false,
|
|
47
|
-
"values": [
|
|
48
|
-
"number",
|
|
49
|
-
"CSS units",
|
|
50
|
-
"xxs",
|
|
51
|
-
"xs",
|
|
52
|
-
"sm",
|
|
53
|
-
"md",
|
|
54
|
-
"lg",
|
|
55
|
-
"xl",
|
|
56
|
-
"xxl",
|
|
57
|
-
"xxxl"
|
|
58
|
-
],
|
|
59
|
-
"category": "style"
|
|
60
|
-
},
|
|
61
|
-
"clickable": {
|
|
62
|
-
"type": "boolean",
|
|
63
|
-
"description": "Enables pointer/hover styles and click handling on the component.",
|
|
64
|
-
"default": false,
|
|
65
|
-
"values": null,
|
|
66
|
-
"category": "behavior"
|
|
67
|
-
},
|
|
68
|
-
"padding": {
|
|
69
|
-
"type": "string|number",
|
|
70
|
-
"description": "Padding applied to the component root element.",
|
|
71
|
-
"default": null,
|
|
72
|
-
"values": [
|
|
73
|
-
"number",
|
|
74
|
-
"CSS units",
|
|
75
|
-
"xxs",
|
|
76
|
-
"xs",
|
|
77
|
-
"sm",
|
|
78
|
-
"md",
|
|
79
|
-
"lg",
|
|
80
|
-
"xl",
|
|
81
|
-
"xxl",
|
|
82
|
-
"xxxl"
|
|
83
|
-
],
|
|
84
|
-
"category": "layout"
|
|
85
|
-
},
|
|
86
|
-
"margin": {
|
|
87
|
-
"type": "string|number",
|
|
88
|
-
"description": "Margin applied to the component root element.",
|
|
89
|
-
"default": null,
|
|
90
|
-
"values": [
|
|
91
|
-
"number",
|
|
92
|
-
"CSS units",
|
|
93
|
-
"xxs",
|
|
94
|
-
"xs",
|
|
95
|
-
"sm",
|
|
96
|
-
"md",
|
|
97
|
-
"lg",
|
|
98
|
-
"xl",
|
|
99
|
-
"xxl",
|
|
100
|
-
"xxxl"
|
|
101
|
-
],
|
|
102
|
-
"category": "layout"
|
|
103
|
-
},
|
|
104
|
-
"width": {
|
|
105
|
-
"type": "string|number",
|
|
106
|
-
"description": "Explicit width (number interpreted as px or CSS length).",
|
|
107
|
-
"default": null,
|
|
108
|
-
"values": [
|
|
109
|
-
"number",
|
|
110
|
-
"CSS units",
|
|
111
|
-
"xxs",
|
|
112
|
-
"xs",
|
|
113
|
-
"sm",
|
|
114
|
-
"md",
|
|
115
|
-
"lg",
|
|
116
|
-
"xl",
|
|
117
|
-
"xxl",
|
|
118
|
-
"xxxl"
|
|
119
|
-
],
|
|
120
|
-
"category": "layout"
|
|
121
|
-
},
|
|
122
|
-
"minWidth": {
|
|
123
|
-
"type": "string|number",
|
|
124
|
-
"description": "Minimum width constraint (number interpreted as px or CSS length).",
|
|
125
|
-
"default": null,
|
|
126
|
-
"values": [
|
|
127
|
-
"number",
|
|
128
|
-
"CSS units",
|
|
129
|
-
"xxs",
|
|
130
|
-
"xs",
|
|
131
|
-
"sm",
|
|
132
|
-
"md",
|
|
133
|
-
"lg",
|
|
134
|
-
"xl",
|
|
135
|
-
"xxl",
|
|
136
|
-
"xxxl"
|
|
137
|
-
],
|
|
138
|
-
"category": "layout"
|
|
139
|
-
},
|
|
140
|
-
"maxWidth": {
|
|
141
|
-
"type": "string|number",
|
|
142
|
-
"description": "Maximum width constraint (number interpreted as px or CSS length).",
|
|
143
|
-
"default": null,
|
|
144
|
-
"values": [
|
|
145
|
-
"number",
|
|
146
|
-
"CSS units",
|
|
147
|
-
"xxs",
|
|
148
|
-
"xs",
|
|
149
|
-
"sm",
|
|
150
|
-
"md",
|
|
151
|
-
"lg",
|
|
152
|
-
"xl",
|
|
153
|
-
"xxl",
|
|
154
|
-
"xxxl"
|
|
155
|
-
],
|
|
156
|
-
"category": "layout"
|
|
157
|
-
},
|
|
158
|
-
"height": {
|
|
159
|
-
"type": "string|number",
|
|
160
|
-
"description": "Explicit height (number interpreted as px or CSS length).",
|
|
161
|
-
"default": null,
|
|
162
|
-
"values": [
|
|
163
|
-
"number",
|
|
164
|
-
"CSS units",
|
|
165
|
-
"xxs",
|
|
166
|
-
"xs",
|
|
167
|
-
"sm",
|
|
168
|
-
"md",
|
|
169
|
-
"lg",
|
|
170
|
-
"xl",
|
|
171
|
-
"xxl",
|
|
172
|
-
"xxxl"
|
|
173
|
-
],
|
|
174
|
-
"category": "layout"
|
|
175
|
-
},
|
|
176
|
-
"minHeight": {
|
|
177
|
-
"type": "string|number",
|
|
178
|
-
"description": "Minimum height constraint (number interpreted as px or CSS length).",
|
|
179
|
-
"default": null,
|
|
180
|
-
"values": [
|
|
181
|
-
"number",
|
|
182
|
-
"CSS units",
|
|
183
|
-
"xxs",
|
|
184
|
-
"xs",
|
|
185
|
-
"sm",
|
|
186
|
-
"md",
|
|
187
|
-
"lg",
|
|
188
|
-
"xl",
|
|
189
|
-
"xxl",
|
|
190
|
-
"xxxl"
|
|
191
|
-
],
|
|
192
|
-
"category": "layout"
|
|
193
|
-
},
|
|
194
|
-
"maxHeight": {
|
|
195
|
-
"type": "string|number",
|
|
196
|
-
"description": "Maximum height constraint (number interpreted as px or CSS length).",
|
|
197
|
-
"default": null,
|
|
198
|
-
"values": [
|
|
199
|
-
"number",
|
|
200
|
-
"CSS units",
|
|
201
|
-
"xxs",
|
|
202
|
-
"xs",
|
|
203
|
-
"sm",
|
|
204
|
-
"md",
|
|
205
|
-
"lg",
|
|
206
|
-
"xl",
|
|
207
|
-
"xxl",
|
|
208
|
-
"xxxl"
|
|
209
|
-
],
|
|
210
|
-
"category": "layout"
|
|
211
|
-
},
|
|
212
|
-
"radius": {
|
|
213
|
-
"type": "string|number",
|
|
214
|
-
"description": "Border radius token or CSS length applied to the component.",
|
|
215
|
-
"default": null,
|
|
216
|
-
"values": [
|
|
217
|
-
"number",
|
|
218
|
-
"CSS units",
|
|
219
|
-
"xxs",
|
|
220
|
-
"xs",
|
|
221
|
-
"sm",
|
|
222
|
-
"md",
|
|
223
|
-
"lg",
|
|
224
|
-
"xl",
|
|
225
|
-
"xxl",
|
|
226
|
-
"xxxl"
|
|
227
|
-
],
|
|
228
|
-
"category": "style"
|
|
229
|
-
},
|
|
230
|
-
"borderRadius": {
|
|
231
|
-
"type": "string|number",
|
|
232
|
-
"description": "Border radius token or CSS length applied to the component.",
|
|
233
|
-
"default": null,
|
|
234
|
-
"values": [
|
|
235
|
-
"number",
|
|
236
|
-
"CSS units",
|
|
237
|
-
"xxs",
|
|
238
|
-
"xs",
|
|
239
|
-
"sm",
|
|
240
|
-
"md",
|
|
241
|
-
"lg",
|
|
242
|
-
"xl",
|
|
243
|
-
"xxl",
|
|
244
|
-
"xxxl"
|
|
245
|
-
],
|
|
246
|
-
"category": "style"
|
|
247
|
-
},
|
|
248
|
-
"shadow": {
|
|
249
|
-
"type": "string|boolean",
|
|
250
|
-
"description": "Shadow token or CSS box-shadow string applied to the component.",
|
|
251
|
-
"default": null,
|
|
252
|
-
"values": [
|
|
253
|
-
"none",
|
|
254
|
-
"xxs",
|
|
255
|
-
"xs",
|
|
256
|
-
"sm",
|
|
257
|
-
"md",
|
|
258
|
-
"lg",
|
|
259
|
-
"xl",
|
|
260
|
-
"xxl",
|
|
261
|
-
"xxxl"
|
|
262
|
-
],
|
|
263
|
-
"category": "style"
|
|
264
|
-
},
|
|
265
|
-
"mobile": {
|
|
266
|
-
"type": "object",
|
|
267
|
-
"description": "Responsive overrides applied at the base/mobile viewport.",
|
|
268
|
-
"default": null,
|
|
269
|
-
"values": null,
|
|
270
|
-
"category": "layout"
|
|
271
|
-
},
|
|
272
|
-
"tablet": {
|
|
273
|
-
"type": "object",
|
|
274
|
-
"description": "Responsive overrides applied from the tablet breakpoint upward.",
|
|
275
|
-
"default": null,
|
|
276
|
-
"values": null,
|
|
277
|
-
"category": "layout"
|
|
278
|
-
},
|
|
279
|
-
"pc": {
|
|
280
|
-
"type": "object",
|
|
281
|
-
"description": "Responsive overrides applied from the desktop breakpoint upward.",
|
|
282
|
-
"default": null,
|
|
283
|
-
"values": null,
|
|
284
|
-
"category": "layout"
|
|
285
|
-
},
|
|
286
|
-
"class": {
|
|
287
|
-
"type": "string",
|
|
288
|
-
"description": "Additional CSS classes applied to the component root element.",
|
|
289
|
-
"default": null,
|
|
290
|
-
"values": null,
|
|
291
|
-
"category": "style"
|
|
292
|
-
},
|
|
293
|
-
"style": {
|
|
294
|
-
"type": "object",
|
|
295
|
-
"description": "Inline styles applied to the component root element.",
|
|
296
|
-
"default": null,
|
|
297
|
-
"values": null,
|
|
298
|
-
"category": "style"
|
|
299
|
-
},
|
|
300
|
-
"label": {
|
|
301
|
-
"type": "String|Node|Function|Array",
|
|
302
|
-
"description": "Label text or node for the component.",
|
|
303
|
-
"default": null,
|
|
304
|
-
"values": null,
|
|
305
|
-
"category": "general"
|
|
306
|
-
},
|
|
307
|
-
"behavior": {
|
|
308
|
-
"type": "\"checkbox\"|\"radio\"",
|
|
309
|
-
"description": "Component configuration for \"behavior\". When not handled internally, it is forwarded to the root element.",
|
|
310
|
-
"default": null,
|
|
311
|
-
"values": null,
|
|
312
|
-
"category": "general"
|
|
313
|
-
},
|
|
314
|
-
"mode": {
|
|
315
|
-
"type": "Alias of behavior",
|
|
316
|
-
"description": "Component configuration for \"mode\". When not handled internally, it is forwarded to the root element.",
|
|
317
|
-
"default": null,
|
|
318
|
-
"values": null,
|
|
319
|
-
"category": "general"
|
|
320
|
-
},
|
|
321
|
-
"value": {
|
|
322
|
-
"type": "any",
|
|
323
|
-
"description": "Current value (controlled).",
|
|
324
|
-
"default": null,
|
|
325
|
-
"values": null,
|
|
326
|
-
"category": "data"
|
|
327
|
-
},
|
|
328
|
-
"name": {
|
|
329
|
-
"type": "string",
|
|
330
|
-
"description": "HTML name attribute for form submission.",
|
|
331
|
-
"default": null,
|
|
332
|
-
"values": null,
|
|
333
|
-
"category": "general"
|
|
334
|
-
},
|
|
335
|
-
"checked": {
|
|
336
|
-
"type": "boolean",
|
|
337
|
-
"description": "Checked state for toggleable controls (controlled).",
|
|
338
|
-
"default": null,
|
|
339
|
-
"values": null,
|
|
340
|
-
"category": "general"
|
|
341
|
-
},
|
|
342
|
-
"model": {
|
|
343
|
-
"type": "[get,set] signal",
|
|
344
|
-
"description": "Two-way bound value (alias to value in some components).",
|
|
345
|
-
"default": null,
|
|
346
|
-
"values": null,
|
|
347
|
-
"category": "data"
|
|
348
|
-
},
|
|
349
|
-
"icon": {
|
|
350
|
-
"type": "String|Node|Function|Array",
|
|
351
|
-
"description": "Icon name or node rendered with the component.",
|
|
352
|
-
"default": null,
|
|
353
|
-
"values": [
|
|
354
|
-
"#name_tabler",
|
|
355
|
-
"name_material",
|
|
356
|
-
"class"
|
|
357
|
-
],
|
|
358
|
-
"category": "general"
|
|
359
|
-
},
|
|
360
|
-
"iconOn": {
|
|
361
|
-
"type": "Alias of icon/checkedIcon",
|
|
362
|
-
"description": "Component configuration for \"iconOn\". When not handled internally, it is forwarded to the root element.",
|
|
363
|
-
"default": null,
|
|
364
|
-
"values": null,
|
|
365
|
-
"category": "general"
|
|
366
|
-
},
|
|
367
|
-
"iconOff": {
|
|
368
|
-
"type": "Alias of uncheckedIcon",
|
|
369
|
-
"description": "Component configuration for \"iconOff\". When not handled internally, it is forwarded to the root element.",
|
|
370
|
-
"default": null,
|
|
371
|
-
"values": null,
|
|
372
|
-
"category": "general"
|
|
373
|
-
},
|
|
374
|
-
"iconStandby": {
|
|
375
|
-
"type": "Icon for null/indeterminate state",
|
|
376
|
-
"description": "Component configuration for \"iconStandby\". When not handled internally, it is forwarded to the root element.",
|
|
377
|
-
"default": null,
|
|
378
|
-
"values": null,
|
|
379
|
-
"category": "general"
|
|
380
|
-
},
|
|
381
|
-
"checkedIcon": {
|
|
382
|
-
"type": "String|Node|Function|Array",
|
|
383
|
-
"description": "Component configuration for \"checkedIcon\". When not handled internally, it is forwarded to the root element.",
|
|
384
|
-
"default": null,
|
|
385
|
-
"values": null,
|
|
386
|
-
"category": "general"
|
|
387
|
-
},
|
|
388
|
-
"uncheckedIcon": {
|
|
389
|
-
"type": "String|Node|Function|Array",
|
|
390
|
-
"description": "Component configuration for \"uncheckedIcon\". When not handled internally, it is forwarded to the root element.",
|
|
391
|
-
"default": null,
|
|
392
|
-
"values": null,
|
|
393
|
-
"category": "general"
|
|
394
|
-
},
|
|
395
|
-
"dense": {
|
|
396
|
-
"type": "boolean",
|
|
397
|
-
"description": "Uses compact spacing and sizing.",
|
|
398
|
-
"default": false,
|
|
399
|
-
"values": null,
|
|
400
|
-
"category": "layout"
|
|
401
|
-
},
|
|
402
|
-
"shortcode": {
|
|
403
|
-
"type": "string|Array<string>|object",
|
|
404
|
-
"description": "Keyboard shortcut string, object, or array bound to the component action.",
|
|
405
|
-
"default": null,
|
|
406
|
-
"values": null,
|
|
407
|
-
"category": "general"
|
|
408
|
-
},
|
|
409
|
-
"showShortcode": {
|
|
410
|
-
"type": "boolean",
|
|
411
|
-
"description": "Displays the configured keyboard shortcut badge when the component supports it.",
|
|
412
|
-
"default": null,
|
|
413
|
-
"values": null,
|
|
414
|
-
"category": "general"
|
|
415
|
-
},
|
|
416
|
-
"slots": {
|
|
417
|
-
"type": "{ label?, default? }",
|
|
418
|
-
"description": "Named slots map for render overrides.",
|
|
419
|
-
"default": null,
|
|
420
|
-
"values": null,
|
|
421
|
-
"category": "general"
|
|
422
|
-
},
|
|
423
|
-
"children": {
|
|
424
|
-
"type": "Node|Array|Function",
|
|
425
|
-
"description": "Default child content (nodes, arrays, or render function).",
|
|
426
|
-
"default": null,
|
|
427
|
-
"values": null,
|
|
428
|
-
"category": "general"
|
|
429
|
-
},
|
|
430
|
-
"iconRight": {
|
|
431
|
-
"type": "String|Node|Function|Array",
|
|
432
|
-
"description": "Icon name or node rendered on the right side of the component.",
|
|
433
|
-
"default": null,
|
|
434
|
-
"values": [
|
|
435
|
-
"#name_tabler",
|
|
436
|
-
"name_material",
|
|
437
|
-
"class"
|
|
438
|
-
],
|
|
439
|
-
"category": "general"
|
|
440
|
-
}
|
|
9
|
+
"label": {"type": "String|Node|Function|Array", "description": "Label text or node for the component.", "default": null, "values": null, "category": "general"},
|
|
10
|
+
"behavior": {"type": "\"checkbox\"|\"radio\"", "description": "Component configuration for \"behavior\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
|
|
11
|
+
"mode": {"type": "Alias of behavior", "description": "Component configuration for \"mode\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
|
|
12
|
+
"value": {"type": "any", "description": "Current value (controlled).", "default": null, "values": null, "category": "data"},
|
|
13
|
+
"name": {"type": "string", "description": "HTML name attribute for form submission.", "default": null, "values": null, "category": "general"},
|
|
14
|
+
"checked": {"type": "boolean", "description": "Checked state for toggleable controls (controlled).", "default": null, "values": null, "category": "general"},
|
|
15
|
+
"model": {"type": "[get,set] signal", "description": "Two-way bound value (alias to value in some components).", "default": null, "values": null, "category": "data"},
|
|
16
|
+
"icon": {"type": "String|Node|Function|Array", "description": "Icon name or node rendered with the component.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "general"},
|
|
17
|
+
"iconOn": {"type": "Alias of icon/checkedIcon", "description": "Component configuration for \"iconOn\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
|
|
18
|
+
"iconOff": {"type": "Alias of uncheckedIcon", "description": "Component configuration for \"iconOff\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
|
|
19
|
+
"iconStandby": {"type": "Icon for null/indeterminate state", "description": "Component configuration for \"iconStandby\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
|
|
20
|
+
"checkedIcon": {"type": "String|Node|Function|Array", "description": "Component configuration for \"checkedIcon\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
|
|
21
|
+
"uncheckedIcon": {"type": "String|Node|Function|Array", "description": "Component configuration for \"uncheckedIcon\". When not handled internally, it is forwarded to the root element.", "default": null, "values": null, "category": "general"},
|
|
22
|
+
"dense": {"type": "boolean", "description": "Uses compact spacing and sizing.", "default": false, "values": null, "category": "layout"},
|
|
23
|
+
"shortcode": {"type": "string|Array<string>|object", "description": "Keyboard shortcut string, object, or array bound to the component action.", "default": null, "values": null, "category": "general"},
|
|
24
|
+
"showShortcode": {"type": "boolean", "description": "Displays the configured keyboard shortcut badge when the component supports it.", "default": null, "values": null, "category": "general"},
|
|
25
|
+
"slots": {"type": "{ label?, default? }", "description": "Named slots map for render overrides.", "default": null, "values": null, "category": "general"},
|
|
26
|
+
"children": {"type": "Node|Array|Function", "description": "Default child content (nodes, arrays, or render function).", "default": null, "values": null, "category": "general"},
|
|
27
|
+
"iconRight": {"type": "String|Node|Function|Array", "description": "Icon name or node rendered on the right side of the component.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "general"}
|
|
441
28
|
},
|
|
442
29
|
"slots": {
|
|
443
|
-
"label": {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
},
|
|
450
|
-
"
|
|
451
|
-
|
|
452
|
-
"description": "Slot for icon content.",
|
|
453
|
-
"default": null,
|
|
454
|
-
"values": [
|
|
455
|
-
"#name_tabler",
|
|
456
|
-
"name_material",
|
|
457
|
-
"class"
|
|
458
|
-
],
|
|
459
|
-
"category": "slot"
|
|
460
|
-
},
|
|
461
|
-
"iconOn": {
|
|
462
|
-
"type": "Alias slot for checked icon",
|
|
463
|
-
"description": "Slot content for \"iconOn\". Accepts nodes, arrays, or render functions.",
|
|
464
|
-
"default": null,
|
|
465
|
-
"values": null,
|
|
466
|
-
"category": "slot"
|
|
467
|
-
},
|
|
468
|
-
"iconOff": {
|
|
469
|
-
"type": "Alias slot for unchecked icon",
|
|
470
|
-
"description": "Slot content for \"iconOff\". Accepts nodes, arrays, or render functions.",
|
|
471
|
-
"default": null,
|
|
472
|
-
"values": null,
|
|
473
|
-
"category": "slot"
|
|
474
|
-
},
|
|
475
|
-
"iconStandby": {
|
|
476
|
-
"type": "Slot for null/indeterminate icon",
|
|
477
|
-
"description": "Slot content for \"iconStandby\". Accepts nodes, arrays, or render functions.",
|
|
478
|
-
"default": null,
|
|
479
|
-
"values": null,
|
|
480
|
-
"category": "slot"
|
|
481
|
-
},
|
|
482
|
-
"checkedIcon": {
|
|
483
|
-
"type": "Icon when checked",
|
|
484
|
-
"description": "Slot content for \"checkedIcon\". Accepts nodes, arrays, or render functions.",
|
|
485
|
-
"default": null,
|
|
486
|
-
"values": null,
|
|
487
|
-
"category": "slot"
|
|
488
|
-
},
|
|
489
|
-
"uncheckedIcon": {
|
|
490
|
-
"type": "Icon when unchecked",
|
|
491
|
-
"description": "Slot content for \"uncheckedIcon\". Accepts nodes, arrays, or render functions.",
|
|
492
|
-
"default": null,
|
|
493
|
-
"values": null,
|
|
494
|
-
"category": "slot"
|
|
495
|
-
},
|
|
496
|
-
"default": {
|
|
497
|
-
"type": "Fallback label content",
|
|
498
|
-
"description": "Primary content for the component.",
|
|
499
|
-
"default": null,
|
|
500
|
-
"values": null,
|
|
501
|
-
"category": "slot"
|
|
502
|
-
},
|
|
503
|
-
"iconRight": {
|
|
504
|
-
"type": "Base icon content",
|
|
505
|
-
"description": "Slot for right-aligned icon content."
|
|
506
|
-
}
|
|
30
|
+
"label": {"type": "Toggle label", "description": "Slot for label content.", "default": null, "values": null, "category": "slot"},
|
|
31
|
+
"icon": {"type": "Base icon content", "description": "Slot for icon content.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "slot"},
|
|
32
|
+
"iconOn": {"type": "Alias slot for checked icon", "description": "Slot content for \"iconOn\". Accepts nodes, arrays, or render functions.", "default": null, "values": null, "category": "slot"},
|
|
33
|
+
"iconOff": {"type": "Alias slot for unchecked icon", "description": "Slot content for \"iconOff\". Accepts nodes, arrays, or render functions.", "default": null, "values": null, "category": "slot"},
|
|
34
|
+
"iconStandby": {"type": "Slot for null/indeterminate icon", "description": "Slot content for \"iconStandby\". Accepts nodes, arrays, or render functions.", "default": null, "values": null, "category": "slot"},
|
|
35
|
+
"checkedIcon": {"type": "Icon when checked", "description": "Slot content for \"checkedIcon\". Accepts nodes, arrays, or render functions.", "default": null, "values": null, "category": "slot"},
|
|
36
|
+
"uncheckedIcon": {"type": "Icon when unchecked", "description": "Slot content for \"uncheckedIcon\". Accepts nodes, arrays, or render functions.", "default": null, "values": null, "category": "slot"},
|
|
37
|
+
"default": {"type": "Fallback label content", "description": "Primary content for the component.", "default": null, "values": null, "category": "slot"},
|
|
38
|
+
"iconRight": {"type": "Base icon content", "description": "Slot for right-aligned icon content."}
|
|
507
39
|
},
|
|
508
40
|
"events": {
|
|
509
41
|
"onChange": "(checked|value, event)",
|
|
510
42
|
"onInput": "(checked|value, event)"
|
|
511
43
|
},
|
|
512
44
|
"returns": "HTMLLabelElement",
|
|
513
|
-
"description": "Toggle switch con supporto model e comportamento checkbox/radio."
|
|
45
|
+
"description": "Toggle switch con supporto model e comportamento checkbox/radio.",
|
|
46
|
+
"commonProps": {"path": "ui/common-props.md", "keys": ["size", "color", "outline", "clickable", "padding", "margin", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "radius", "borderRadius", "shadow", "mobile", "tablet", "pc", "class", "style"]}
|
|
514
47
|
}
|
|
515
48
|
```
|