jsswift 1.0.44 → 1.0.45
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/README.md +2 -0
- package/dist/documentions/application-rules.md +12 -0
- package/dist/documentions/components/btn.md +35 -416
- package/dist/documentions/components/card.md +62 -594
- package/dist/documentions/components/dialog.md +81 -626
- package/dist/documentions/components/input.md +73 -617
- package/dist/documentions/components/pagination.md +54 -529
- package/dist/documentions/components/select.md +84 -658
- package/dist/documentions/components/table.md +93 -655
- package/dist/documentions/getting-started.md +27 -0
- package/dist/documentions/knowledge-map.json +1 -1
- package/dist/tabler.js +7 -0
- package/package.json +5 -2
|
@@ -15,6 +15,8 @@ Build applications with JSswift by reading only the smallest focused guide. Exac
|
|
|
15
15
|
| Exact component API | components/<component>.md only |
|
|
16
16
|
| HTML or SVG helpers | [reference/html-svg-helpers.md](reference/html-svg-helpers.md) |
|
|
17
17
|
|
|
18
|
+
For styling, begin with [application-rules.md](application-rules.md): JSswift includes component CSS; prefer documented props and theme variables before custom overrides.
|
|
19
|
+
|
|
18
20
|
Rules: use `_` as the single application namespace; prefer documented `_.Component` UI components; use only documented component APIs; use `_.signal` and documented model contracts; write mobile-first root props with tablet from 768px and pc from 1024px; use raw helpers only for small structural gaps.
|
|
19
21
|
|
|
20
22
|
For framework maintenance, builds, tests, or releases, read [../docDevelop/README.md](../docDevelop/README.md).
|
|
@@ -5,3 +5,15 @@ Use documented `_.Component` UI components for layout, content, forms, navigatio
|
|
|
5
5
|
The common call shape is _.Component(props?, ...children). Use named slots only when the exact component file documents them. Children and many text slots accept nodes, arrays, and functions.
|
|
6
6
|
|
|
7
7
|
Open [components/README.md](components/README.md) to choose a family, then open the one needed component file.
|
|
8
|
+
|
|
9
|
+
## Use the existing CSS first
|
|
10
|
+
|
|
11
|
+
Import `jsswift/css/ui.css` once. JSswift already supplies component styles, theme variables, and responsive layout rules. Start with the native appearance. Use documented props such as `color`, `dense`, `padding`, `radius`, `shadow`, and responsive overrides before writing custom CSS. Prefer theme variables from the installed stylesheet for shared colors and typography.
|
|
12
|
+
|
|
13
|
+
Custom CSS is appropriate for page-specific visuals or requirements the documented props do not cover. Keep it scoped to application classes; avoid recreating buttons, fields, cards, table cells, pagination, or dialog internals. Read the exact component contract before choosing a prop.
|
|
14
|
+
|
|
15
|
+
## Keep discovery focused
|
|
16
|
+
|
|
17
|
+
Read the index and only the contracts for components you will use. Batch independent file reads; do not concatenate the whole catalog, extract it with Python, or search the framework source when the documented contract already answers the question. When a contract is missing or ambiguous, inspect only the relevant implementation and report the gap. Build after the first complete implementation, then correct concrete failures.
|
|
18
|
+
|
|
19
|
+
Run comparative benchmarks in an isolated workspace, with equivalent instructions for every stack.
|
|
@@ -8,425 +8,44 @@ Exact JSswift UI metadata contract. Use only the props, slots, events, and metho
|
|
|
8
8
|
{
|
|
9
9
|
"signature": "_.Button(...children) | _.Button(props, ...children)",
|
|
10
10
|
"props": {
|
|
11
|
-
"size": {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"dark"
|
|
42
|
-
],
|
|
43
|
-
"category": "style"
|
|
44
|
-
},
|
|
45
|
-
"outline": {
|
|
46
|
-
"type": "boolean",
|
|
47
|
-
"description": "Uses outlined visual style.",
|
|
48
|
-
"default": false,
|
|
49
|
-
"values": [
|
|
50
|
-
"number",
|
|
51
|
-
"CSS units",
|
|
52
|
-
"xxs",
|
|
53
|
-
"xs",
|
|
54
|
-
"sm",
|
|
55
|
-
"md",
|
|
56
|
-
"lg",
|
|
57
|
-
"xl",
|
|
58
|
-
"xxl",
|
|
59
|
-
"xxxl"
|
|
60
|
-
],
|
|
61
|
-
"category": "style"
|
|
62
|
-
},
|
|
63
|
-
"clickable": {
|
|
64
|
-
"type": "boolean",
|
|
65
|
-
"description": "Enables pointer/hover styles and click handling on the component.",
|
|
66
|
-
"default": false,
|
|
67
|
-
"values": null,
|
|
68
|
-
"category": "behavior"
|
|
69
|
-
},
|
|
70
|
-
"padding": {
|
|
71
|
-
"type": "string|number",
|
|
72
|
-
"description": "Padding applied to the component root element.",
|
|
73
|
-
"default": null,
|
|
74
|
-
"values": [
|
|
75
|
-
"number",
|
|
76
|
-
"CSS units",
|
|
77
|
-
"xxs",
|
|
78
|
-
"xs",
|
|
79
|
-
"sm",
|
|
80
|
-
"md",
|
|
81
|
-
"lg",
|
|
82
|
-
"xl",
|
|
83
|
-
"xxl",
|
|
84
|
-
"xxxl"
|
|
85
|
-
],
|
|
86
|
-
"category": "layout"
|
|
87
|
-
},
|
|
88
|
-
"margin": {
|
|
89
|
-
"type": "string|number",
|
|
90
|
-
"description": "Margin applied to the component root element.",
|
|
91
|
-
"default": null,
|
|
92
|
-
"values": [
|
|
93
|
-
"number",
|
|
94
|
-
"CSS units",
|
|
95
|
-
"xxs",
|
|
96
|
-
"xs",
|
|
97
|
-
"sm",
|
|
98
|
-
"md",
|
|
99
|
-
"lg",
|
|
100
|
-
"xl",
|
|
101
|
-
"xxl",
|
|
102
|
-
"xxxl"
|
|
103
|
-
],
|
|
104
|
-
"category": "layout"
|
|
105
|
-
},
|
|
106
|
-
"width": {
|
|
107
|
-
"type": "string|number",
|
|
108
|
-
"description": "Explicit width (number interpreted as px or CSS length).",
|
|
109
|
-
"default": null,
|
|
110
|
-
"values": [
|
|
111
|
-
"number",
|
|
112
|
-
"CSS units",
|
|
113
|
-
"xxs",
|
|
114
|
-
"xs",
|
|
115
|
-
"sm",
|
|
116
|
-
"md",
|
|
117
|
-
"lg",
|
|
118
|
-
"xl",
|
|
119
|
-
"xxl",
|
|
120
|
-
"xxxl"
|
|
121
|
-
],
|
|
122
|
-
"category": "layout"
|
|
123
|
-
},
|
|
124
|
-
"minWidth": {
|
|
125
|
-
"type": "string|number",
|
|
126
|
-
"description": "Minimum width constraint (number interpreted as px or CSS length).",
|
|
127
|
-
"default": null,
|
|
128
|
-
"values": [
|
|
129
|
-
"number",
|
|
130
|
-
"CSS units",
|
|
131
|
-
"xxs",
|
|
132
|
-
"xs",
|
|
133
|
-
"sm",
|
|
134
|
-
"md",
|
|
135
|
-
"lg",
|
|
136
|
-
"xl",
|
|
137
|
-
"xxl",
|
|
138
|
-
"xxxl"
|
|
139
|
-
],
|
|
140
|
-
"category": "layout"
|
|
141
|
-
},
|
|
142
|
-
"maxWidth": {
|
|
143
|
-
"type": "string|number",
|
|
144
|
-
"description": "Maximum width constraint (number interpreted as px or CSS length).",
|
|
145
|
-
"default": null,
|
|
146
|
-
"values": [
|
|
147
|
-
"number",
|
|
148
|
-
"CSS units",
|
|
149
|
-
"xxs",
|
|
150
|
-
"xs",
|
|
151
|
-
"sm",
|
|
152
|
-
"md",
|
|
153
|
-
"lg",
|
|
154
|
-
"xl",
|
|
155
|
-
"xxl",
|
|
156
|
-
"xxxl"
|
|
157
|
-
],
|
|
158
|
-
"category": "layout"
|
|
159
|
-
},
|
|
160
|
-
"height": {
|
|
161
|
-
"type": "string|number",
|
|
162
|
-
"description": "Explicit height (number interpreted as px or CSS length).",
|
|
163
|
-
"default": null,
|
|
164
|
-
"values": [
|
|
165
|
-
"number",
|
|
166
|
-
"CSS units",
|
|
167
|
-
"xxs",
|
|
168
|
-
"xs",
|
|
169
|
-
"sm",
|
|
170
|
-
"md",
|
|
171
|
-
"lg",
|
|
172
|
-
"xl",
|
|
173
|
-
"xxl",
|
|
174
|
-
"xxxl"
|
|
175
|
-
],
|
|
176
|
-
"category": "layout"
|
|
177
|
-
},
|
|
178
|
-
"minHeight": {
|
|
179
|
-
"type": "string|number",
|
|
180
|
-
"description": "Minimum height constraint (number interpreted as px or CSS length).",
|
|
181
|
-
"default": null,
|
|
182
|
-
"values": [
|
|
183
|
-
"number",
|
|
184
|
-
"CSS units",
|
|
185
|
-
"xxs",
|
|
186
|
-
"xs",
|
|
187
|
-
"sm",
|
|
188
|
-
"md",
|
|
189
|
-
"lg",
|
|
190
|
-
"xl",
|
|
191
|
-
"xxl",
|
|
192
|
-
"xxxl"
|
|
193
|
-
],
|
|
194
|
-
"category": "layout"
|
|
195
|
-
},
|
|
196
|
-
"maxHeight": {
|
|
197
|
-
"type": "string|number",
|
|
198
|
-
"description": "Maximum height constraint (number interpreted as px or CSS length).",
|
|
199
|
-
"default": null,
|
|
200
|
-
"values": [
|
|
201
|
-
"number",
|
|
202
|
-
"CSS units",
|
|
203
|
-
"xxs",
|
|
204
|
-
"xs",
|
|
205
|
-
"sm",
|
|
206
|
-
"md",
|
|
207
|
-
"lg",
|
|
208
|
-
"xl",
|
|
209
|
-
"xxl",
|
|
210
|
-
"xxxl"
|
|
211
|
-
],
|
|
212
|
-
"category": "layout"
|
|
213
|
-
},
|
|
214
|
-
"radius": {
|
|
215
|
-
"type": "string|number",
|
|
216
|
-
"description": "Border radius token or CSS length applied to the component.",
|
|
217
|
-
"default": null,
|
|
218
|
-
"values": [
|
|
219
|
-
"number",
|
|
220
|
-
"CSS units",
|
|
221
|
-
"xxs",
|
|
222
|
-
"xs",
|
|
223
|
-
"sm",
|
|
224
|
-
"md",
|
|
225
|
-
"lg",
|
|
226
|
-
"xl",
|
|
227
|
-
"xxl",
|
|
228
|
-
"xxxl"
|
|
229
|
-
],
|
|
230
|
-
"category": "style"
|
|
231
|
-
},
|
|
232
|
-
"borderRadius": {
|
|
233
|
-
"type": "string|number",
|
|
234
|
-
"description": "Border radius token or CSS length applied to the component.",
|
|
235
|
-
"default": null,
|
|
236
|
-
"values": [
|
|
237
|
-
"number",
|
|
238
|
-
"CSS units",
|
|
239
|
-
"xxs",
|
|
240
|
-
"xs",
|
|
241
|
-
"sm",
|
|
242
|
-
"md",
|
|
243
|
-
"lg",
|
|
244
|
-
"xl",
|
|
245
|
-
"xxl",
|
|
246
|
-
"xxxl"
|
|
247
|
-
],
|
|
248
|
-
"category": "style"
|
|
249
|
-
},
|
|
250
|
-
"shadow": {
|
|
251
|
-
"type": "string|boolean",
|
|
252
|
-
"description": "Shadow token or CSS box-shadow string applied to the component.",
|
|
253
|
-
"default": null,
|
|
254
|
-
"values": [
|
|
255
|
-
"none",
|
|
256
|
-
"xxs",
|
|
257
|
-
"xs",
|
|
258
|
-
"sm",
|
|
259
|
-
"md",
|
|
260
|
-
"lg",
|
|
261
|
-
"xl",
|
|
262
|
-
"xxl",
|
|
263
|
-
"xxxl"
|
|
264
|
-
],
|
|
265
|
-
"category": "style"
|
|
266
|
-
},
|
|
267
|
-
"mobile": {
|
|
268
|
-
"type": "object",
|
|
269
|
-
"description": "Responsive overrides applied at the base/mobile viewport.",
|
|
270
|
-
"default": null,
|
|
271
|
-
"values": null,
|
|
272
|
-
"category": "layout"
|
|
273
|
-
},
|
|
274
|
-
"tablet": {
|
|
275
|
-
"type": "object",
|
|
276
|
-
"description": "Responsive overrides applied from the tablet breakpoint upward.",
|
|
277
|
-
"default": null,
|
|
278
|
-
"values": null,
|
|
279
|
-
"category": "layout"
|
|
280
|
-
},
|
|
281
|
-
"pc": {
|
|
282
|
-
"type": "object",
|
|
283
|
-
"description": "Responsive overrides applied from the desktop breakpoint upward.",
|
|
284
|
-
"default": null,
|
|
285
|
-
"values": null,
|
|
286
|
-
"category": "layout"
|
|
287
|
-
},
|
|
288
|
-
"class": {
|
|
289
|
-
"type": "string",
|
|
290
|
-
"description": "Additional CSS classes applied to the component root element.",
|
|
291
|
-
"default": null,
|
|
292
|
-
"values": null,
|
|
293
|
-
"category": "style"
|
|
294
|
-
},
|
|
295
|
-
"style": {
|
|
296
|
-
"type": "object",
|
|
297
|
-
"description": "Inline styles applied to the component root element.",
|
|
298
|
-
"default": null,
|
|
299
|
-
"values": null,
|
|
300
|
-
"category": "style"
|
|
301
|
-
},
|
|
302
|
-
"label": {
|
|
303
|
-
"type": "String|Node|Function|Array",
|
|
304
|
-
"description": "Label text or node for the component.",
|
|
305
|
-
"default": null,
|
|
306
|
-
"values": null,
|
|
307
|
-
"category": "general"
|
|
308
|
-
},
|
|
309
|
-
"icon": {
|
|
310
|
-
"type": "String|Node|Function|Array",
|
|
311
|
-
"description": "Icon name or node rendered with the component.",
|
|
312
|
-
"default": null,
|
|
313
|
-
"values": [
|
|
314
|
-
"#name_tabler",
|
|
315
|
-
"name_material",
|
|
316
|
-
"class"
|
|
317
|
-
],
|
|
318
|
-
"category": "general"
|
|
319
|
-
},
|
|
320
|
-
"iconRight": {
|
|
321
|
-
"type": "String|Node|Function|Array",
|
|
322
|
-
"description": "Icon name or node rendered on the right side of the component.",
|
|
323
|
-
"default": null,
|
|
324
|
-
"values": [
|
|
325
|
-
"#name_tabler",
|
|
326
|
-
"name_material",
|
|
327
|
-
"class"
|
|
328
|
-
],
|
|
329
|
-
"category": "general"
|
|
330
|
-
},
|
|
331
|
-
"iconAlign": {
|
|
332
|
-
"type": "before|after|left|right",
|
|
333
|
-
"description": "Position of the icon relative to the label.",
|
|
334
|
-
"default": null,
|
|
335
|
-
"values": [
|
|
336
|
-
"left",
|
|
337
|
-
"right",
|
|
338
|
-
"before",
|
|
339
|
-
"after"
|
|
340
|
-
],
|
|
341
|
-
"category": "general"
|
|
342
|
-
},
|
|
343
|
-
"loading": {
|
|
344
|
-
"type": "boolean",
|
|
345
|
-
"description": "Shows loading state and disables interactions where appropriate.",
|
|
346
|
-
"default": null,
|
|
347
|
-
"values": null,
|
|
348
|
-
"category": "state"
|
|
349
|
-
},
|
|
350
|
-
"disabled": {
|
|
351
|
-
"type": "boolean",
|
|
352
|
-
"description": "Disables interaction and applies disabled styling/ARIA.",
|
|
353
|
-
"default": false,
|
|
354
|
-
"values": null,
|
|
355
|
-
"category": "state"
|
|
356
|
-
},
|
|
357
|
-
"shortcode": {
|
|
358
|
-
"type": "string|Array<string>|object",
|
|
359
|
-
"description": "Keyboard shortcut string, object, or array bound to the component action.",
|
|
360
|
-
"default": null,
|
|
361
|
-
"values": null,
|
|
362
|
-
"category": "general"
|
|
363
|
-
},
|
|
364
|
-
"showShortcode": {
|
|
365
|
-
"type": "boolean",
|
|
366
|
-
"description": "Displays the configured keyboard shortcut badge when the component supports it.",
|
|
367
|
-
"default": null,
|
|
368
|
-
"values": null,
|
|
369
|
-
"category": "general"
|
|
370
|
-
},
|
|
371
|
-
"slots": {
|
|
372
|
-
"type": "{ icon?, label?, default? }",
|
|
373
|
-
"description": "Named slots map for render overrides.",
|
|
374
|
-
"default": null,
|
|
375
|
-
"values": null,
|
|
376
|
-
"category": "general"
|
|
377
|
-
},
|
|
378
|
-
"children": {
|
|
379
|
-
"type": "Node|Array|Function",
|
|
380
|
-
"description": "Default child content (nodes, arrays, or render function).",
|
|
381
|
-
"default": null,
|
|
382
|
-
"values": null,
|
|
383
|
-
"category": "general"
|
|
384
|
-
}
|
|
11
|
+
"size": {"type": "string|number", "description": "Size token, number, or CSS length for sizing.", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "style"},
|
|
12
|
+
"color": {"type": "primary|secondary|warning|danger|success|info|light|dark", "description": "Semantic color name used to style the component.", "default": null, "values": ["primary", "secondary", "success", "warning", "danger", "info", "light", "dark"], "category": "style"},
|
|
13
|
+
"outline": {"type": "boolean", "description": "Uses outlined visual style.", "default": false, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "style"},
|
|
14
|
+
"clickable": {"type": "boolean", "description": "Enables pointer/hover styles and click handling on the component.", "default": false, "values": null, "category": "behavior"},
|
|
15
|
+
"padding": {"type": "string|number", "description": "Padding applied to the component root element.", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "layout"},
|
|
16
|
+
"margin": {"type": "string|number", "description": "Margin applied to the component root element.", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "layout"},
|
|
17
|
+
"width": {"type": "string|number", "description": "Explicit width (number interpreted as px or CSS length).", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "layout"},
|
|
18
|
+
"minWidth": {"type": "string|number", "description": "Minimum width constraint (number interpreted as px or CSS length).", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "layout"},
|
|
19
|
+
"maxWidth": {"type": "string|number", "description": "Maximum width constraint (number interpreted as px or CSS length).", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "layout"},
|
|
20
|
+
"height": {"type": "string|number", "description": "Explicit height (number interpreted as px or CSS length).", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "layout"},
|
|
21
|
+
"minHeight": {"type": "string|number", "description": "Minimum height constraint (number interpreted as px or CSS length).", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "layout"},
|
|
22
|
+
"maxHeight": {"type": "string|number", "description": "Maximum height constraint (number interpreted as px or CSS length).", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "layout"},
|
|
23
|
+
"radius": {"type": "string|number", "description": "Border radius token or CSS length applied to the component.", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "style"},
|
|
24
|
+
"borderRadius": {"type": "string|number", "description": "Border radius token or CSS length applied to the component.", "default": null, "values": ["number", "CSS units", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "style"},
|
|
25
|
+
"shadow": {"type": "string|boolean", "description": "Shadow token or CSS box-shadow string applied to the component.", "default": null, "values": ["none", "xxs", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], "category": "style"},
|
|
26
|
+
"mobile": {"type": "object", "description": "Responsive overrides applied at the base/mobile viewport.", "default": null, "values": null, "category": "layout"},
|
|
27
|
+
"tablet": {"type": "object", "description": "Responsive overrides applied from the tablet breakpoint upward.", "default": null, "values": null, "category": "layout"},
|
|
28
|
+
"pc": {"type": "object", "description": "Responsive overrides applied from the desktop breakpoint upward.", "default": null, "values": null, "category": "layout"},
|
|
29
|
+
"class": {"type": "string", "description": "Additional CSS classes applied to the component root element.", "default": null, "values": null, "category": "style"},
|
|
30
|
+
"style": {"type": "object", "description": "Inline styles applied to the component root element.", "default": null, "values": null, "category": "style"},
|
|
31
|
+
"label": {"type": "String|Node|Function|Array", "description": "Label text or node for the component.", "default": null, "values": null, "category": "general"},
|
|
32
|
+
"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"},
|
|
33
|
+
"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"},
|
|
34
|
+
"iconAlign": {"type": "before|after|left|right", "description": "Position of the icon relative to the label.", "default": null, "values": ["left", "right", "before", "after"], "category": "general"},
|
|
35
|
+
"loading": {"type": "boolean", "description": "Shows loading state and disables interactions where appropriate.", "default": null, "values": null, "category": "state"},
|
|
36
|
+
"disabled": {"type": "boolean", "description": "Disables interaction and applies disabled styling/ARIA.", "default": false, "values": null, "category": "state"},
|
|
37
|
+
"shortcode": {"type": "string|Array<string>|object", "description": "Keyboard shortcut string, object, or array bound to the component action.", "default": null, "values": null, "category": "general"},
|
|
38
|
+
"showShortcode": {"type": "boolean", "description": "Displays the configured keyboard shortcut badge when the component supports it.", "default": null, "values": null, "category": "general"},
|
|
39
|
+
"slots": {"type": "{ icon?, label?, default? }", "description": "Named slots map for render overrides.", "default": null, "values": null, "category": "general"},
|
|
40
|
+
"children": {"type": "Node|Array|Function", "description": "Default child content (nodes, arrays, or render function).", "default": null, "values": null, "category": "general"}
|
|
385
41
|
},
|
|
386
42
|
"slots": {
|
|
387
|
-
"icon": {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
"values": [
|
|
392
|
-
"#name_tabler",
|
|
393
|
-
"name_material",
|
|
394
|
-
"class"
|
|
395
|
-
],
|
|
396
|
-
"category": "slot"
|
|
397
|
-
},
|
|
398
|
-
"iconRight": {
|
|
399
|
-
"type": "Right icon slot",
|
|
400
|
-
"description": "Slot for right-aligned icon content.",
|
|
401
|
-
"default": null,
|
|
402
|
-
"values": [
|
|
403
|
-
"#name_tabler",
|
|
404
|
-
"name_material",
|
|
405
|
-
"class"
|
|
406
|
-
],
|
|
407
|
-
"category": "slot"
|
|
408
|
-
},
|
|
409
|
-
"label": {
|
|
410
|
-
"type": "Label slot",
|
|
411
|
-
"description": "Slot for label content.",
|
|
412
|
-
"default": null,
|
|
413
|
-
"values": null,
|
|
414
|
-
"category": "slot"
|
|
415
|
-
},
|
|
416
|
-
"default": {
|
|
417
|
-
"type": "Button content",
|
|
418
|
-
"description": "Primary content for the component.",
|
|
419
|
-
"default": null,
|
|
420
|
-
"values": null,
|
|
421
|
-
"category": "slot"
|
|
422
|
-
}
|
|
43
|
+
"icon": {"type": "Icon slot", "description": "Slot for icon content.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "slot"},
|
|
44
|
+
"iconRight": {"type": "Right icon slot", "description": "Slot for right-aligned icon content.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "slot"},
|
|
45
|
+
"label": {"type": "Label slot", "description": "Slot for label content.", "default": null, "values": null, "category": "slot"},
|
|
46
|
+
"default": {"type": "Button content", "description": "Primary content for the component.", "default": null, "values": null, "category": "slot"}
|
|
423
47
|
},
|
|
424
|
-
"events": [
|
|
425
|
-
"click",
|
|
426
|
-
"pointerdown",
|
|
427
|
-
"focus",
|
|
428
|
-
"blur"
|
|
429
|
-
],
|
|
48
|
+
"events": ["click", "pointerdown", "focus", "blur"],
|
|
430
49
|
"returns": "HTMLButtonElement",
|
|
431
50
|
"description": "Button component meta definition."
|
|
432
51
|
}
|