slexkit 0.2.0

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.
Files changed (221) hide show
  1. package/AGENTS.slexkit.md +29 -0
  2. package/CHANGELOG.md +90 -0
  3. package/LICENSE +21 -0
  4. package/README.md +165 -0
  5. package/README.zh-CN.md +165 -0
  6. package/dist/ai/llms-authoring.txt +44 -0
  7. package/dist/ai/llms-components.txt +669 -0
  8. package/dist/ai/llms-full.txt +6586 -0
  9. package/dist/ai/llms-runtime.txt +1475 -0
  10. package/dist/ai/llms-toolhost.txt +295 -0
  11. package/dist/ai/llms.txt +69 -0
  12. package/dist/ai/slexkit-ai-manifest.json +2922 -0
  13. package/dist/base.css +621 -0
  14. package/dist/chunks/accordion-5f0nvjjm.js +376 -0
  15. package/dist/chunks/accordion-830dw78f.js +221 -0
  16. package/dist/chunks/accordion-cfjyxw93.js +630 -0
  17. package/dist/chunks/accordion-cw5r75jm.js +424 -0
  18. package/dist/chunks/accordion-ehnhpeca.js +492 -0
  19. package/dist/chunks/accordion-hzyrngd6.js +2377 -0
  20. package/dist/chunks/accordion-nw12ytps.js +6823 -0
  21. package/dist/components/accordion.js +163 -0
  22. package/dist/components/badge.js +80 -0
  23. package/dist/components/button.css +114 -0
  24. package/dist/components/button.js +16 -0
  25. package/dist/components/callout.js +154 -0
  26. package/dist/components/card.js +95 -0
  27. package/dist/components/checkbox.js +114 -0
  28. package/dist/components/choice.css +165 -0
  29. package/dist/components/code-block.js +264 -0
  30. package/dist/components/collapsible.js +111 -0
  31. package/dist/components/column.js +49 -0
  32. package/dist/components/content.css +474 -0
  33. package/dist/components/disclosure.css +162 -0
  34. package/dist/components/display.css +259 -0
  35. package/dist/components/divider.js +98 -0
  36. package/dist/components/feedback.css +219 -0
  37. package/dist/components/grid.js +67 -0
  38. package/dist/components/index.js +13364 -0
  39. package/dist/components/input.css +1247 -0
  40. package/dist/components/input.js +384 -0
  41. package/dist/components/link.js +77 -0
  42. package/dist/components/progress.js +111 -0
  43. package/dist/components/radio-group.js +189 -0
  44. package/dist/components/row.js +200 -0
  45. package/dist/components/section.js +161 -0
  46. package/dist/components/select.css +260 -0
  47. package/dist/components/select.js +16 -0
  48. package/dist/components/slider.css +125 -0
  49. package/dist/components/slider.js +175 -0
  50. package/dist/components/specs.js +1090 -0
  51. package/dist/components/stat.js +178 -0
  52. package/dist/components/submit.css +9 -0
  53. package/dist/components/submit.js +77 -0
  54. package/dist/components/switch.css +114 -0
  55. package/dist/components/switch.js +114 -0
  56. package/dist/components/table.js +157 -0
  57. package/dist/components/tabs.css +192 -0
  58. package/dist/components/tabs.js +17 -0
  59. package/dist/components/text-input.css +245 -0
  60. package/dist/components/text.js +50 -0
  61. package/dist/components/toast.js +240 -0
  62. package/dist/components/tooling.css +1009 -0
  63. package/dist/components/tooling.js +48951 -0
  64. package/dist/runtime.cjs +3728 -0
  65. package/dist/runtime.js +3686 -0
  66. package/dist/slexkit.cjs +18539 -0
  67. package/dist/slexkit.css +4776 -0
  68. package/dist/slexkit.js +18497 -0
  69. package/dist/tooling.js +59141 -0
  70. package/dist/types/components/accordion.d.ts +2 -0
  71. package/dist/types/components/badge.d.ts +2 -0
  72. package/dist/types/components/button.d.ts +2 -0
  73. package/dist/types/components/callout.d.ts +2 -0
  74. package/dist/types/components/card.d.ts +2 -0
  75. package/dist/types/components/checkbox.d.ts +2 -0
  76. package/dist/types/components/code-block.d.ts +2 -0
  77. package/dist/types/components/collapsible.d.ts +2 -0
  78. package/dist/types/components/column.d.ts +2 -0
  79. package/dist/types/components/divider.d.ts +2 -0
  80. package/dist/types/components/entries/accordion.d.ts +3 -0
  81. package/dist/types/components/entries/badge.d.ts +3 -0
  82. package/dist/types/components/entries/button.d.ts +3 -0
  83. package/dist/types/components/entries/callout.d.ts +3 -0
  84. package/dist/types/components/entries/card.d.ts +3 -0
  85. package/dist/types/components/entries/checkbox.d.ts +3 -0
  86. package/dist/types/components/entries/code-block.d.ts +3 -0
  87. package/dist/types/components/entries/collapsible.d.ts +3 -0
  88. package/dist/types/components/entries/column.d.ts +3 -0
  89. package/dist/types/components/entries/divider.d.ts +3 -0
  90. package/dist/types/components/entries/grid.d.ts +3 -0
  91. package/dist/types/components/entries/input.d.ts +3 -0
  92. package/dist/types/components/entries/link.d.ts +3 -0
  93. package/dist/types/components/entries/progress.d.ts +3 -0
  94. package/dist/types/components/entries/radio-group.d.ts +3 -0
  95. package/dist/types/components/entries/row.d.ts +3 -0
  96. package/dist/types/components/entries/section.d.ts +3 -0
  97. package/dist/types/components/entries/select.d.ts +3 -0
  98. package/dist/types/components/entries/slider.d.ts +3 -0
  99. package/dist/types/components/entries/specs.d.ts +1 -0
  100. package/dist/types/components/entries/stat.d.ts +3 -0
  101. package/dist/types/components/entries/submit.d.ts +3 -0
  102. package/dist/types/components/entries/switch.d.ts +3 -0
  103. package/dist/types/components/entries/table.d.ts +3 -0
  104. package/dist/types/components/entries/tabs.d.ts +3 -0
  105. package/dist/types/components/entries/text.d.ts +3 -0
  106. package/dist/types/components/entries/toast.d.ts +3 -0
  107. package/dist/types/components/entries/tooling.d.ts +1 -0
  108. package/dist/types/components/grid.d.ts +2 -0
  109. package/dist/types/components/index.d.ts +6 -0
  110. package/dist/types/components/input.d.ts +2 -0
  111. package/dist/types/components/link.d.ts +2 -0
  112. package/dist/types/components/progress.d.ts +2 -0
  113. package/dist/types/components/radio-group.d.ts +2 -0
  114. package/dist/types/components/row.d.ts +2 -0
  115. package/dist/types/components/section.d.ts +2 -0
  116. package/dist/types/components/select.d.ts +2 -0
  117. package/dist/types/components/slider.d.ts +2 -0
  118. package/dist/types/components/spec-helpers.d.ts +23 -0
  119. package/dist/types/components/spec-registry.d.ts +12 -0
  120. package/dist/types/components/spec-schema.d.ts +74 -0
  121. package/dist/types/components/specs.d.ts +2 -0
  122. package/dist/types/components/stat.d.ts +2 -0
  123. package/dist/types/components/submit.d.ts +2 -0
  124. package/dist/types/components/svelte/adapter.d.ts +3 -0
  125. package/dist/types/components/svelte/bindProps.d.ts +2 -0
  126. package/dist/types/components/svelte/helpers.d.ts +33 -0
  127. package/dist/types/components/svelte/layout/balancedTiles.d.ts +14 -0
  128. package/dist/types/components/svelte/types.d.ts +12 -0
  129. package/dist/types/components/switch.d.ts +2 -0
  130. package/dist/types/components/table.d.ts +2 -0
  131. package/dist/types/components/tabs.d.ts +2 -0
  132. package/dist/types/components/text.d.ts +2 -0
  133. package/dist/types/components/toast.d.ts +2 -0
  134. package/dist/types/components/tooling.d.ts +2 -0
  135. package/dist/types/components-svelte.d.ts +5 -0
  136. package/dist/types/engine/component-scope.d.ts +14 -0
  137. package/dist/types/engine/component-state.d.ts +9 -0
  138. package/dist/types/engine/diagnostics.d.ts +24 -0
  139. package/dist/types/engine/engineering.d.ts +11 -0
  140. package/dist/types/engine/eval.d.ts +5 -0
  141. package/dist/types/engine/index.d.ts +26 -0
  142. package/dist/types/engine/markdown-runtime.d.ts +33 -0
  143. package/dist/types/engine/merge.d.ts +1 -0
  144. package/dist/types/engine/reactive.d.ts +11 -0
  145. package/dist/types/engine/registry.d.ts +4 -0
  146. package/dist/types/engine/renderer.d.ts +6 -0
  147. package/dist/types/engine/sandbox-runner.d.ts +2 -0
  148. package/dist/types/engine/secure-runtime.d.ts +214 -0
  149. package/dist/types/engine/store.d.ts +12 -0
  150. package/dist/types/engine/types.d.ts +58 -0
  151. package/dist/types/icons/manager.d.ts +17 -0
  152. package/dist/types/icons/phosphor.d.ts +45 -0
  153. package/dist/types/index.d.ts +61 -0
  154. package/dist/types/runtime.d.ts +32 -0
  155. package/dist/types/toolhost/index.d.ts +78 -0
  156. package/dist/types/tooling-umd.d.ts +47 -0
  157. package/dist/types/version.d.ts +8 -0
  158. package/dist/umd/slexkit.tooling.umd.js +66553 -0
  159. package/dist/umd/slexkit.umd.js +18552 -0
  160. package/package.json +136 -0
  161. package/scripts/cli.mjs +47 -0
  162. package/skills/slexkit/SKILL.md +27 -0
  163. package/skills/slexkit-author/SKILL.md +50 -0
  164. package/skills/slexkit-host-integration/SKILL.md +33 -0
  165. package/skills/slexkit-secure-runtime/SKILL.md +31 -0
  166. package/skills/slexkit-toolhost/SKILL.md +38 -0
  167. package/skills/slexkit-update/SKILL.md +23 -0
  168. package/src/components/svelte/InlineIcon.svelte +66 -0
  169. package/src/components/svelte/adapter.ts +76 -0
  170. package/src/components/svelte/bindProps.ts +9 -0
  171. package/src/components/svelte/content/Badge.svelte +19 -0
  172. package/src/components/svelte/content/Callout.svelte +57 -0
  173. package/src/components/svelte/content/CodeBlock.svelte +130 -0
  174. package/src/components/svelte/content/Divider.svelte +21 -0
  175. package/src/components/svelte/content/Link.svelte +21 -0
  176. package/src/components/svelte/content/Section.svelte +24 -0
  177. package/src/components/svelte/content/Table.svelte +44 -0
  178. package/src/components/svelte/disclosure/Accordion.svelte +100 -0
  179. package/src/components/svelte/disclosure/Collapsible.svelte +45 -0
  180. package/src/components/svelte/display/Stat.svelte +102 -0
  181. package/src/components/svelte/display/Text.svelte +11 -0
  182. package/src/components/svelte/feedback/Progress.svelte +34 -0
  183. package/src/components/svelte/feedback/Toast.svelte +105 -0
  184. package/src/components/svelte/helpers.ts +148 -0
  185. package/src/components/svelte/input/Button.svelte +78 -0
  186. package/src/components/svelte/input/Checkbox.svelte +52 -0
  187. package/src/components/svelte/input/Input.svelte +202 -0
  188. package/src/components/svelte/input/RadioGroup.svelte +71 -0
  189. package/src/components/svelte/input/Select.svelte +220 -0
  190. package/src/components/svelte/input/Slider.svelte +96 -0
  191. package/src/components/svelte/input/Submit.svelte +32 -0
  192. package/src/components/svelte/input/Switch.svelte +53 -0
  193. package/src/components/svelte/input/Tabs.svelte +188 -0
  194. package/src/components/svelte/layout/Card.svelte +17 -0
  195. package/src/components/svelte/layout/Column.svelte +15 -0
  196. package/src/components/svelte/layout/Grid.svelte +26 -0
  197. package/src/components/svelte/layout/Row.svelte +105 -0
  198. package/src/components/svelte/layout/balancedTiles.ts +85 -0
  199. package/src/components/svelte/tooling/CodeMirror.svelte +91 -0
  200. package/src/components/svelte/tooling/Playground.svelte +765 -0
  201. package/src/components/svelte/tooling/PlaygroundMarkdown.svelte +26 -0
  202. package/src/components/svelte/tooling/PlaygroundSlexCode.svelte +76 -0
  203. package/src/components/svelte/types.ts +17 -0
  204. package/src/styles/animation.css +98 -0
  205. package/src/styles/components/button.css +114 -0
  206. package/src/styles/components/choice.css +165 -0
  207. package/src/styles/components/select.css +260 -0
  208. package/src/styles/components/slider.css +125 -0
  209. package/src/styles/components/submit.css +9 -0
  210. package/src/styles/components/switch.css +114 -0
  211. package/src/styles/components/tabs.css +192 -0
  212. package/src/styles/components/text-input.css +245 -0
  213. package/src/styles/content.css +474 -0
  214. package/src/styles/disclosure.css +162 -0
  215. package/src/styles/display.css +259 -0
  216. package/src/styles/entry.css +34 -0
  217. package/src/styles/feedback.css +219 -0
  218. package/src/styles/input.css +8 -0
  219. package/src/styles/layout.css +365 -0
  220. package/src/styles/theme.css +31 -0
  221. package/src/styles/tooling.css +1009 -0
@@ -0,0 +1,669 @@
1
+ # SlexKit Components for LLMs
2
+
3
+ Use these components inside Markdown `slex` fences. Raw component docs are ordinary `.md` pages that preserve `slex` examples.
4
+
5
+ Public component count: 28
6
+
7
+ ## Disclosure
8
+
9
+ - [Accordion](/docs/components/accordion.md): `accordion` - Expandable grouped panels.
10
+ - [Collapsible](/docs/components/collapsible.md): `collapsible` - Single expandable region.
11
+
12
+ ## Content
13
+
14
+ - [Badge](/docs/components/badge.md): `badge` - Compact label for status or classification.
15
+ - [Callout](/docs/components/callout.md): `callout` - Highlighted contextual message.
16
+ - [Code Block](/docs/components/code-block.md): `code-block` - Formatted code or log block.
17
+ - [Divider](/docs/components/divider.md): `divider` - Visual separator.
18
+ - [Link](/docs/components/link.md): `link` - Inline navigation link.
19
+ - [Section](/docs/components/section.md): `section` - Page section with optional heading chrome.
20
+
21
+ ## Action
22
+
23
+ - [Button](/docs/components/button.md): `button` - Action trigger.
24
+ - [Submit](/docs/components/submit.md): `submit` - ToolHost submit and ignore controls.
25
+
26
+ ## Layout
27
+
28
+ - [Card](/docs/components/card.md): `card` - Bordered grouping container.
29
+ - [Column](/docs/components/column.md): `column` - Vertical layout container.
30
+ - [Grid](/docs/components/grid.md): `grid` - Responsive grid container.
31
+ - [Row](/docs/components/row.md): `row` - Horizontal layout container.
32
+
33
+ ## Input
34
+
35
+ - [Checkbox](/docs/components/checkbox.md): `checkbox` - Boolean checkbox input.
36
+ - [Input](/docs/components/input.md): `input` - Text or engineering-value input.
37
+ - [Radio Group](/docs/components/radio-group.md): `radio-group` - Single-choice option group.
38
+ - [Select](/docs/components/select.md): `select` - Dropdown selection input.
39
+ - [Slider](/docs/components/slider.md): `slider` - Numeric range input.
40
+ - [Switch](/docs/components/switch.md): `switch` - Boolean switch input.
41
+
42
+ ## Component
43
+
44
+ - [Icon](/docs/components/icon.md): `icon` - Shared icon field capability.
45
+
46
+ ## Tooling
47
+
48
+ - [Playground](/docs/components/playground.md): `playground` - Interactive source preview.
49
+
50
+ ## Feedback
51
+
52
+ - [Progress](/docs/components/progress.md): `progress` - Progress bar.
53
+ - [Toast](/docs/components/toast.md): `toast` - Transient notification.
54
+
55
+ ## Display
56
+
57
+ - [Stat](/docs/components/stat.md): `stat` - Metric display.
58
+ - [Text](/docs/components/text.md): `text` - Plain text display.
59
+
60
+ ## Data
61
+
62
+ - [Table](/docs/components/table.md): `table` - Simple data table.
63
+
64
+ ## Navigation
65
+
66
+ - [Tabs](/docs/components/tabs.md): `tabs` - Tabbed view switcher.
67
+
68
+ ---
69
+
70
+ # Generated Component API Reference
71
+
72
+ ## Accordion API (`accordion`)
73
+
74
+ Category: Disclosure
75
+ Status: ready
76
+ State mode: none
77
+ Since: 0.1.0
78
+
79
+ ### Props
80
+ - `value` (string | string[]; optional; dynamic): Current expanded item value; use an array when multiple is true.
81
+ - `multiple` (boolean; optional; static; default: false): Allow multiple items to be expanded at the same time.
82
+ - `items` (array; optional; static): Panel definitions with value, label, content, and optional icon.
83
+ - `items[].icon` (string; optional; static): Icon name shown before an item trigger label.
84
+ - `onchange` (write-expression; optional; static): Write expression invoked when expanded items change.
85
+
86
+ ### Children
87
+ No child components.
88
+
89
+ ---
90
+
91
+ ## Badge API (`badge`)
92
+
93
+ Category: Content
94
+ Status: ready
95
+ State mode: readable
96
+ Since: 0.1.0
97
+
98
+ ### Props
99
+ - `label` (string; optional; dynamic): Badge text.
100
+ - `text` (string; optional; dynamic): Alias for label.
101
+ - `content` (string; optional; dynamic): Alias for label.
102
+ - `icon` (string; optional; static): Icon name shown before the badge label.
103
+ - `tone` (string; optional; static; default: "info"; values: info, success, warning, danger, muted): Semantic tone applied to the badge.
104
+ - `variant` (string; optional; static; values: info, success, warning, danger, muted): Alias for tone.
105
+
106
+ ### Children
107
+ No child components.
108
+
109
+ ---
110
+
111
+ ## Button API (`button`)
112
+
113
+ Category: Action
114
+ Status: ready
115
+ State mode: none
116
+ Since: 0.1.0
117
+
118
+ ### Props
119
+ - `label` (string; optional; dynamic): Visible button text and accessible name.
120
+ - `icon` (string; optional; static): Icon name shown before the label.
121
+ - `iconOnly` (boolean; optional; static; default: false): Show only the icon while retaining label as the accessible name.
122
+ - `variant` (string; optional; static; default: "primary"; values: primary, secondary, danger, ghost): Semantic action variant.
123
+ - `disabled` (boolean; optional; dynamic; default: false): Disable the action.
124
+ - `href` (string; optional; dynamic): Render the button surface as a link to this URL.
125
+ - `target` (string; optional; static): Link target used when href is present.
126
+ - `title` (string; optional; dynamic): Tooltip and accessible-label fallback.
127
+ - `selected` (boolean; optional; dynamic): Render the icon in its selected visual state.
128
+ - `active` (boolean; optional; dynamic): Render the icon in its active visual state.
129
+ - `pressed` (boolean; optional; dynamic): Expose pressed state and render the selected icon style.
130
+ - `onclick` (write-expression; optional; static): Write expression invoked when the button is clicked.
131
+
132
+ ### Children
133
+ No child components.
134
+
135
+ ---
136
+
137
+ ## Callout API (`callout`)
138
+
139
+ Category: Content
140
+ Status: ready
141
+ State mode: readable
142
+ Since: 0.1.0
143
+
144
+ ### Props
145
+ - `title` (string; optional; dynamic): Callout title.
146
+ - `heading` (string; optional; dynamic): Alias for title.
147
+ - `label` (string; optional; dynamic): Alias for title.
148
+ - `icon` (string; optional; static): Icon name shown before the title.
149
+ - `text` (string; optional; dynamic): Callout body text.
150
+ - `message` (string; optional; dynamic): Alias for text.
151
+ - `content` (string; optional; dynamic): Alias for text.
152
+ - `tone` (string; optional; static; default: "info"; values: info, success, warning, danger): Semantic tone for the callout.
153
+
154
+ ### Children
155
+ Nested component fields are rendered as child content in field order.
156
+
157
+ ---
158
+
159
+ ## Card API (`card`)
160
+
161
+ Category: Layout
162
+ Status: ready
163
+ State mode: none
164
+ Since: 0.1.0
165
+
166
+ ### Props
167
+ - `title` (string; optional; dynamic): Card title.
168
+ - `icon` (string; optional; static): Icon name shown before the title.
169
+ - `tone` (string; optional; static; values: info, success, warning, danger, muted): Optional semantic tone for the card surface.
170
+
171
+ ### Children
172
+ Nested component fields are rendered as child content in field order.
173
+
174
+ ---
175
+
176
+ ## Checkbox API (`checkbox`)
177
+
178
+ Category: Input
179
+ Status: ready
180
+ State mode: checked
181
+ Since: 0.1.0
182
+
183
+ ### Props
184
+ - `checked` (boolean; optional; dynamic; default: false): Checked state.
185
+ - `label` (string; optional; dynamic): Checkbox label.
186
+ - `icon` (string; optional; static): Icon name shown before the visible label.
187
+ - `disabled` (boolean; optional; dynamic; default: false): Disable the checkbox.
188
+ - `haptic` (boolean; optional; static; default: true): Enable vibration feedback on supported devices.
189
+ - `haptics` (boolean; optional; static; default: true): Alias for haptic.
190
+ - `onchange` (write-expression; optional; static): Write expression invoked when checked state changes.
191
+
192
+ ### Children
193
+ No child components.
194
+
195
+ ---
196
+
197
+ ## Code Block API (`code-block`)
198
+
199
+ Category: Content
200
+ Status: ready
201
+ State mode: readable
202
+ Since: 0.1.0
203
+
204
+ ### Props
205
+ - `code` (string; optional; dynamic): Code text content.
206
+ - `source` (string; optional; dynamic): Alias for code.
207
+ - `content` (string; optional; dynamic): Alias for code.
208
+ - `language` (string; optional; static): Language label.
209
+ - `title` (string; optional; static): Code block title.
210
+ - `icon` (string; optional; static): Icon name shown before the title.
211
+ - `lineNumbers` (boolean; optional; static; default: true): Show line numbers.
212
+
213
+ ### Children
214
+ No child components.
215
+
216
+ ---
217
+
218
+ ## Collapsible API (`collapsible`)
219
+
220
+ Category: Disclosure
221
+ Status: ready
222
+ State mode: none
223
+ Since: 0.1.0
224
+
225
+ ### Props
226
+ - `open` (boolean; optional; dynamic; default: false): Expanded state.
227
+ - `trigger` (string; optional; dynamic): Trigger button text.
228
+ - `icon` (string; optional; static): Icon name shown before trigger text.
229
+ - `content` (string; optional; dynamic): Static body content.
230
+ - `onchange` (write-expression; optional; static): Write expression invoked when open state changes.
231
+
232
+ ### Children
233
+ Nested component fields are rendered as child content in field order.
234
+
235
+ ---
236
+
237
+ ## Column API (`column`)
238
+
239
+ Category: Layout
240
+ Status: ready
241
+ State mode: none
242
+ Since: 0.1.0
243
+
244
+ ### Props
245
+ - No props.
246
+
247
+ ### Children
248
+ Nested component fields are rendered as child content in field order.
249
+
250
+ ---
251
+
252
+ ## Divider API (`divider`)
253
+
254
+ Category: Content
255
+ Status: ready
256
+ State mode: readable
257
+ Since: 0.1.0
258
+
259
+ ### Props
260
+ - `label` (string; optional; dynamic): Text shown in the divider.
261
+ - `icon` (string; optional; static): Icon name shown before the label.
262
+
263
+ ### Children
264
+ No child components.
265
+
266
+ ---
267
+
268
+ ## Grid API (`grid`)
269
+
270
+ Category: Layout
271
+ Status: ready
272
+ State mode: none
273
+ Since: 0.1.0
274
+
275
+ ### Props
276
+ - `columns` (number; optional; dynamic; default: 1): Base column count.
277
+ - `smColumns` (number; optional; dynamic): Column count at the small breakpoint.
278
+ - `mdColumns` (number; optional; dynamic): Column count at the medium breakpoint.
279
+ - `lgColumns` (number; optional; dynamic): Column count at the large breakpoint.
280
+ - `xlColumns` (number; optional; dynamic): Column count at the extra-large breakpoint.
281
+ - `gap` (string; optional; dynamic): Spacing between grid items.
282
+
283
+ ### Children
284
+ Nested component fields are rendered as child content in field order.
285
+
286
+ ---
287
+
288
+ ## Icon API (`icon`)
289
+
290
+ Category: Component
291
+ Status: ready
292
+ State mode: none
293
+ Since: 0.1.0
294
+
295
+ ### Props
296
+ - `icon` (string; optional; static): Icon name resolved through the global icon manager.
297
+ - `iconOnly` (boolean; optional; static): Render only the icon while retaining an accessible label where supported.
298
+ - `items[].icon` (string; optional; static): Accordion item trigger icon.
299
+ - `options[].icon` (string; optional; static): Select or radio option icon.
300
+ - `columns[].icon` (string; optional; static): Table column header icon.
301
+ - `tabs[].icon` (string; optional; static): Tab trigger icon.
302
+ - `tabs[].iconOnly` (boolean; optional; static): Tab trigger icon-only mode.
303
+
304
+ ### Children
305
+ No child components.
306
+
307
+ ---
308
+
309
+ ## Input API (`input`)
310
+
311
+ Category: Input
312
+ Status: ready
313
+ State mode: value
314
+ Since: 0.1.0
315
+
316
+ ### Props
317
+ - `value` (string; optional; dynamic): Current input value.
318
+ - `label` (string; optional; dynamic): Input label.
319
+ - `unit` (string; optional; dynamic): Trailing unit text.
320
+ - `description` (string; optional; dynamic): Assistive description below the input.
321
+ - `help` (string; optional; dynamic): Alias for description.
322
+ - `hint` (string; optional; dynamic): Alias for description.
323
+ - `error` (string; optional; dynamic): Error text shown below the input and linked with aria-describedby.
324
+ - `errorMessage` (string; optional; dynamic): Alias for error.
325
+ - `invalid` (boolean; optional; dynamic; default: false): Mark the input as invalid with aria-invalid and error styling.
326
+ - `placeholder` (string; optional; static): Placeholder text for empty values.
327
+ - `type` (string; optional; static; default: "text"): Input value kind; use engineering for parsed engineering values.
328
+ - `disabled` (boolean; optional; dynamic; default: false): Disable editing.
329
+ - `readonly` (boolean; optional; dynamic; default: false): Make the input read-only.
330
+ - `readOnly` (boolean; optional; dynamic; default: false): Alias for readonly.
331
+ - `required` (boolean; optional; dynamic; default: false): Mark the input as required.
332
+ - `id` (string; optional; static): Native input id; defaults to a stable id derived from the component name.
333
+ - `name` (string; optional; static): Native input name attribute.
334
+ - `min` (string | number; optional; dynamic): Minimum value used by numeric input controls.
335
+ - `max` (string | number; optional; dynamic): Maximum value used by numeric input controls.
336
+ - `step` (string | number; optional; dynamic): Step size used by numeric input controls.
337
+ - `controls` (boolean; optional; dynamic; default: true): Show decrement and increment buttons for numeric inputs.
338
+ - `onchange` (write-expression; optional; static): Write expression invoked when the value changes.
339
+
340
+ ### Children
341
+ No child components.
342
+
343
+ ---
344
+
345
+ ## Link API (`link`)
346
+
347
+ Category: Content
348
+ Status: ready
349
+ State mode: readable
350
+ Since: 0.1.0
351
+
352
+ ### Props
353
+ - `href` (string; optional; static): Target URL.
354
+ - `text` (string; optional; dynamic): Visible link text.
355
+ - `label` (string; optional; dynamic): Alias for text.
356
+ - `content` (string; optional; dynamic): Alias for text.
357
+ - `icon` (string; optional; static): Icon name shown before link text.
358
+ - `target` (string; optional; static): Native link target attribute.
359
+ - `variant` (string; optional; static; default: "default"; values: default, muted): Link visual variant.
360
+
361
+ ### Children
362
+ No child components.
363
+
364
+ ---
365
+
366
+ ## Playground API (`playground`)
367
+
368
+ Category: Tooling
369
+ Status: ready
370
+ State mode: none
371
+ Since: 0.1.0
372
+
373
+ ### Props
374
+ - `source` (object | string; optional; static): SlexKit or Markdown source to preview.
375
+ - `sourceType` (string; optional; static; default: "slex"; values: slex, markdown, auto-markdown): Source parser mode.
376
+ - `title` (string; optional; static): Playground title.
377
+ - `previewAlign` (string; optional; static; default: "center"; values: center, start): Vertical preview alignment in render mode.
378
+ - `alignPreview` (string; optional; static; values: center, start): Alias for previewAlign.
379
+ - `previewPlacement` (string; optional; static; values: center, start): Alias for previewAlign.
380
+ - `previewMinHeight` (string; optional; static): Minimum preview area height.
381
+ - `previewMaxWidth` (string; optional; static): Maximum preview content width.
382
+ - `themeToggle` (boolean; optional; static; default: false): Show the theme toggle action.
383
+ - `showThemeToggle` (boolean; optional; static; default: false): Alias for themeToggle.
384
+ - `enableThemeToggle` (boolean; optional; static; default: false): Alias for themeToggle.
385
+ - `themeLabel` (string; optional; static): Accessible label for the theme toggle action.
386
+ - `themeToggleLabel` (string; optional; static): Alias for themeLabel.
387
+ - `sourceTypeLabel` (string; optional; static): Accessible label for the source type selector.
388
+ - `copyLabel` (string; optional; static): Accessible label for the copy source action.
389
+ - `openWebLabel` (string; optional; static): Accessible label for opening the source in the standalone playground.
390
+ - `webUrl` (string; optional; static): Standalone playground URL used by the open action.
391
+ - `playgroundUrl` (string; optional; static): Alias for webUrl.
392
+
393
+ ### Children
394
+ No child components.
395
+
396
+ ---
397
+
398
+ ## Progress API (`progress`)
399
+
400
+ Category: Feedback
401
+ Status: ready
402
+ State mode: readable
403
+ Since: 0.1.0
404
+
405
+ ### Props
406
+ - `value` (number; optional; dynamic; default: 0): Progress percentage from 0 to 100.
407
+ - `label` (string; optional; dynamic): Progress label.
408
+ - `icon` (string; optional; static): Icon name shown before the label.
409
+ - `indeterminate` (boolean; optional; dynamic; default: false): Render an indeterminate progress state without aria-valuenow.
410
+
411
+ ### Children
412
+ No child components.
413
+
414
+ ---
415
+
416
+ ## Radio Group API (`radio-group`)
417
+
418
+ Category: Input
419
+ Status: ready
420
+ State mode: value
421
+ Since: 0.1.0
422
+
423
+ ### Props
424
+ - `value` (string; optional; dynamic): Current selected value.
425
+ - `label` (string; optional; dynamic): Group label.
426
+ - `icon` (string; optional; static): Icon name shown before the group label.
427
+ - `options` (array; optional; static): Options with label, value, and optional icon.
428
+ - `options[].icon` (string; optional; static): Icon name shown before a single option label.
429
+ - `disabled` (boolean; optional; dynamic; default: false): Disable every radio option in the group.
430
+ - `orientation` (string; optional; static; default: "vertical"; values: vertical, horizontal): Radio option layout direction.
431
+ - `haptic` (boolean; optional; static; default: true): Enable vibration feedback on supported devices.
432
+ - `haptics` (boolean; optional; static; default: true): Alias for haptic.
433
+ - `name` (string; optional; static): Native radio group name shared by options.
434
+ - `onchange` (write-expression; optional; static): Write expression invoked when selection changes.
435
+
436
+ ### Children
437
+ No child components.
438
+
439
+ ---
440
+
441
+ ## Row API (`row`)
442
+
443
+ Category: Layout
444
+ Status: ready
445
+ State mode: none
446
+ Since: 0.1.0
447
+
448
+ ### Props
449
+ - `justify` (string; optional; static; default: "start"; values: start, center, end, space-between, space-around): Main-axis distribution.
450
+ - `align` (string; optional; static; default: "center"; values: start, center, end, baseline, stretch): Cross-axis alignment.
451
+ - `gap` (string; optional; dynamic): Spacing between children.
452
+
453
+ ### Children
454
+ Nested component fields are rendered as child content in field order.
455
+
456
+ ---
457
+
458
+ ## Section API (`section`)
459
+
460
+ Category: Content
461
+ Status: ready
462
+ State mode: readable
463
+ Since: 0.1.0
464
+
465
+ ### Props
466
+ - `title` (string; optional; dynamic): Section title.
467
+ - `icon` (string; optional; static): Icon name shown before the title.
468
+ - `eyebrow` (string; optional; dynamic): Small label above the title.
469
+ - `subtitle` (string; optional; dynamic): Subtitle text below the title.
470
+ - `actionLabel` (string; optional; dynamic): Optional action link label.
471
+ - `actionHref` (string; optional; static): Optional action link target.
472
+
473
+ ### Children
474
+ Nested component fields are rendered as child content in field order.
475
+
476
+ ---
477
+
478
+ ## Select API (`select`)
479
+
480
+ Category: Input
481
+ Status: ready
482
+ State mode: value
483
+ Since: 0.1.0
484
+
485
+ ### Props
486
+ - `label` (string; optional; dynamic): Select label.
487
+ - `icon` (string; optional; static): Icon name shown before the top label.
488
+ - `value` (string; optional; dynamic): Current selected value.
489
+ - `options` (array; optional; static): Options with label, value, and optional icon.
490
+ - `options[].icon` (string; optional; static): Icon name shown before an option label.
491
+ - `placeholder` (string; optional; static): Placeholder shown when no value is selected.
492
+ - `disabled` (boolean; optional; dynamic; default: false): Disable the select trigger and native select.
493
+ - `required` (boolean; optional; dynamic; default: false): Require a non-placeholder value in the native select.
494
+ - `variant` (string; optional; static; default: "default"; values: default, toolbar): Select surface variant.
495
+ - `onchange` (write-expression; optional; static): Write expression invoked when selection changes.
496
+
497
+ ### Children
498
+ No child components.
499
+
500
+ ---
501
+
502
+ ## Slider API (`slider`)
503
+
504
+ Category: Input
505
+ Status: ready
506
+ State mode: value
507
+ Since: 0.1.0
508
+
509
+ ### Props
510
+ - `label` (string; optional; dynamic): Slider label.
511
+ - `icon` (string; optional; static): Icon name shown before the label.
512
+ - `value` (number; optional; dynamic; default: 0): Current numeric value.
513
+ - `min` (number; optional; dynamic; default: 0): Minimum value.
514
+ - `max` (number; optional; dynamic; default: 100): Maximum value.
515
+ - `step` (number; optional; dynamic; default: 1): Step interval.
516
+ - `unit` (string; optional; dynamic): Unit shown after the value.
517
+ - `disabled` (boolean; optional; dynamic; default: false): Disable the range input.
518
+ - `orientation` (string; optional; static; default: "horizontal"; values: horizontal, vertical): Slider orientation metadata used for styling.
519
+ - `haptic` (boolean; optional; static; default: true): Enable vibration feedback on supported devices.
520
+ - `haptics` (boolean; optional; static; default: true): Alias for haptic.
521
+ - `onchange` (write-expression; optional; static): Write expression invoked when the value changes.
522
+
523
+ ### Children
524
+ No child components.
525
+
526
+ ---
527
+
528
+ ## Stat API (`stat`)
529
+
530
+ Category: Display
531
+ Status: ready
532
+ State mode: readable
533
+ Since: 0.1.0
534
+
535
+ ### Props
536
+ - `label` (string; optional; dynamic): Metric label.
537
+ - `icon` (string; optional; static): Icon name shown before the label.
538
+ - `value` (string | number; optional; dynamic): Metric value.
539
+ - `unit` (string; optional; dynamic): Unit shown after the value.
540
+ - `tone` (string; optional; static; values: info, success, warning, danger, muted): Optional semantic tone.
541
+ - `animateInitial` (boolean; optional; static; default: false): Animate the initial rendered value.
542
+
543
+ ### Children
544
+ No child components.
545
+
546
+ ---
547
+
548
+ ## Submit API (`submit`)
549
+
550
+ Category: Action
551
+ Status: ready
552
+ State mode: none
553
+ Since: 0.1.0
554
+
555
+ ### Props
556
+ - `submitLabel` (string; optional; static; default: "Submit"): Submit button text.
557
+ - `ignoreLabel` (string; optional; static; default: "Ignore"): Ignore button text.
558
+ - `returnKeys` (string[]; optional; static): State field paths returned to ToolHost.
559
+ - `disabled` (boolean; optional; dynamic; default: false): Disable submit action.
560
+
561
+ ### Children
562
+ No child components.
563
+
564
+ ---
565
+
566
+ ## Switch API (`switch`)
567
+
568
+ Category: Input
569
+ Status: ready
570
+ State mode: enabled
571
+ Since: 0.1.0
572
+
573
+ ### Props
574
+ - `enabled` (boolean; optional; dynamic; default: false): Enabled state.
575
+ - `label` (string; optional; dynamic): Switch label.
576
+ - `icon` (string; optional; static): Icon name shown before the visible label.
577
+ - `disabled` (boolean; optional; dynamic; default: false): Disable the switch.
578
+ - `haptic` (boolean; optional; static; default: true): Enable vibration feedback on supported devices.
579
+ - `haptics` (boolean; optional; static; default: true): Alias for haptic.
580
+ - `onchange` (write-expression; optional; static): Write expression invoked when enabled state changes.
581
+
582
+ ### Children
583
+ No child components.
584
+
585
+ ---
586
+
587
+ ## Table API (`table`)
588
+
589
+ Category: Data
590
+ Status: ready
591
+ State mode: readable
592
+ Since: 0.1.0
593
+
594
+ ### Props
595
+ - `columns` (array; optional; static): Column definitions with key, label, and optional icon.
596
+ - `columns[].icon` (string; optional; static): Icon name shown before a column label.
597
+ - `rows` (array; optional; static): Row data objects keyed by column key.
598
+ - `items` (array; optional; static): Alias for rows.
599
+
600
+ ### Children
601
+ No child components.
602
+
603
+ ---
604
+
605
+ ## Tabs API (`tabs`)
606
+
607
+ Category: Navigation
608
+ Status: ready
609
+ State mode: value
610
+ Since: 0.1.0
611
+
612
+ ### Props
613
+ - `value` (string; optional; dynamic): Current active tab value.
614
+ - `tabs` (array; optional; static): Tab definitions with value, label, content, icon, and iconOnly.
615
+ - `tabs[].icon` (string; optional; static): Icon name shown before a tab trigger label.
616
+ - `tabs[].iconOnly` (boolean; optional; static): Show only the tab icon while retaining label as accessible text.
617
+ - `orientation` (string; optional; static; default: "horizontal"; values: horizontal, vertical): Tab list orientation.
618
+ - `onchange` (write-expression; optional; static): Write expression invoked when the active tab changes.
619
+
620
+ ### Children
621
+ No child components.
622
+
623
+ ---
624
+
625
+ ## Text API (`text`)
626
+
627
+ Category: Display
628
+ Status: ready
629
+ State mode: readable
630
+ Since: 0.1.0
631
+
632
+ ### Props
633
+ - `text` (string; optional; dynamic): Displayed text.
634
+ - `content` (string; optional; dynamic): Alias for text.
635
+ - `label` (string; optional; dynamic): Alias for text.
636
+ - `variant` (string; optional; static; default: "default"; values: default, muted): Text visual variant.
637
+ - `class` (string; optional; static): Additional host-controlled CSS class.
638
+
639
+ ### Children
640
+ No child components.
641
+
642
+ ---
643
+
644
+ ## Toast API (`toast`)
645
+
646
+ Category: Feedback
647
+ Status: ready
648
+ State mode: none
649
+ Since: 0.1.0
650
+
651
+ ### Props
652
+ - `title` (string; optional; dynamic): Toast title.
653
+ - `heading` (string; optional; dynamic): Alias for title.
654
+ - `label` (string; optional; dynamic): Alias for title.
655
+ - `icon` (string; optional; static): Icon name shown at the left of the toast.
656
+ - `description` (string; optional; dynamic): Toast body text.
657
+ - `text` (string; optional; dynamic): Alias for description.
658
+ - `message` (string; optional; dynamic): Alias for description.
659
+ - `content` (string; optional; dynamic): Alias for description.
660
+ - `type` (string; optional; static; default: "info"; values: info, success, warning, danger): Semantic notification type.
661
+ - `tone` (string; optional; static; default: "info"; values: info, success, warning, danger): Alias for type.
662
+ - `duration` (number; optional; static): Auto-hide delay in milliseconds.
663
+ - `dismissable` (boolean; optional; static; default: true): Show a close button.
664
+ - `dismissible` (boolean; optional; static; default: true): Alias for dismissable.
665
+ - `closeLabel` (string; optional; static; default: "Close notification"): Accessible close button label.
666
+ - `closeAriaLabel` (string; optional; static): Alias for closeLabel.
667
+
668
+ ### Children
669
+ No child components.