@lowdefy/docs-content 0.0.0-experimental-20260710073520

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 (304) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +20 -0
  3. package/content/actions/callapi.md +66 -0
  4. package/content/actions/callmethod.md +41 -0
  5. package/content/actions/copytoclipboard.md +32 -0
  6. package/content/actions/displaymessage.md +53 -0
  7. package/content/actions/downloadcsv.md +89 -0
  8. package/content/actions/fetch.md +50 -0
  9. package/content/actions/geolocationcurrentposition.md +56 -0
  10. package/content/actions/link.md +104 -0
  11. package/content/actions/login.md +85 -0
  12. package/content/actions/logout.md +56 -0
  13. package/content/actions/pdfmake.md +304 -0
  14. package/content/actions/request.md +67 -0
  15. package/content/actions/reset.md +27 -0
  16. package/content/actions/resetvalidation.md +85 -0
  17. package/content/actions/scrollto.md +85 -0
  18. package/content/actions/setdarkmode.md +62 -0
  19. package/content/actions/setfocus.md +33 -0
  20. package/content/actions/setglobal.md +63 -0
  21. package/content/actions/setlocale.md +69 -0
  22. package/content/actions/setstate.md +70 -0
  23. package/content/actions/throw.md +72 -0
  24. package/content/actions/validate.md +87 -0
  25. package/content/actions/wait.md +24 -0
  26. package/content/agents/agent-endpoint-tools.md +190 -0
  27. package/content/agents/agent-mcp-tools.md +124 -0
  28. package/content/agents/agent-multi-agent.md +136 -0
  29. package/content/agents/agent-properties.md +174 -0
  30. package/content/agents/agent-server-hooks.md +336 -0
  31. package/content/agents/agentchat.md +515 -0
  32. package/content/agents/agentconversations.md +148 -0
  33. package/content/concepts/ai-agent-docs.md +190 -0
  34. package/content/concepts/cli.md +213 -0
  35. package/content/concepts/connections-and-requests.md +7 -0
  36. package/content/concepts/custom-html.md +3 -0
  37. package/content/concepts/custom-styling.md +161 -0
  38. package/content/concepts/events-and-actions.md +271 -0
  39. package/content/concepts/hosting-files.md +18 -0
  40. package/content/concepts/i18n.md +320 -0
  41. package/content/concepts/keyboard-shortcuts.md +218 -0
  42. package/content/concepts/layout-overview.md +478 -0
  43. package/content/concepts/lists.md +144 -0
  44. package/content/concepts/logger.md +43 -0
  45. package/content/concepts/lowdefy-schema.md +365 -0
  46. package/content/concepts/menus.md +144 -0
  47. package/content/concepts/module-authoring.md +564 -0
  48. package/content/concepts/modules.md +338 -0
  49. package/content/concepts/operators.md +45 -0
  50. package/content/concepts/overview.md +19 -0
  51. package/content/concepts/references-and-templates.md +207 -0
  52. package/content/concepts/secrets.md +24 -0
  53. package/content/concepts/selectors.md +143 -0
  54. package/content/connections/amazonredshift.md +176 -0
  55. package/content/connections/anthropic.md +232 -0
  56. package/content/connections/awss3.md +313 -0
  57. package/content/connections/azureblobstorage.md +133 -0
  58. package/content/connections/elasticsearch.md +371 -0
  59. package/content/connections/google.md +228 -0
  60. package/content/connections/googlecloudstorage.md +139 -0
  61. package/content/connections/googlesheet.md +313 -0
  62. package/content/connections/knex.md +206 -0
  63. package/content/connections/mariadb.md +177 -0
  64. package/content/connections/mcp.md +134 -0
  65. package/content/connections/mongodb.md +739 -0
  66. package/content/connections/mssql.md +191 -0
  67. package/content/connections/mysql.md +192 -0
  68. package/content/connections/openai-connection.md +228 -0
  69. package/content/connections/postgresql.md +200 -0
  70. package/content/connections/redis.md +116 -0
  71. package/content/connections/sendgridmail.md +94 -0
  72. package/content/connections/smtp.md +149 -0
  73. package/content/connections/sqlite.md +187 -0
  74. package/content/connections/stripe.md +115 -0
  75. package/content/container-blocks/affix.md +413 -0
  76. package/content/container-blocks/alert.md +937 -0
  77. package/content/container-blocks/badge.md +1222 -0
  78. package/content/container-blocks/box.md +1453 -0
  79. package/content/container-blocks/card.md +1200 -0
  80. package/content/container-blocks/carousel.md +2247 -0
  81. package/content/container-blocks/collapse.md +1335 -0
  82. package/content/container-blocks/configprovider.md +1070 -0
  83. package/content/container-blocks/confirmmodal.md +1159 -0
  84. package/content/container-blocks/content.md +597 -0
  85. package/content/container-blocks/descriptions.md +870 -0
  86. package/content/container-blocks/drawer.md +1379 -0
  87. package/content/container-blocks/dropdownmenu.md +643 -0
  88. package/content/container-blocks/flex.md +1510 -0
  89. package/content/container-blocks/footer.md +380 -0
  90. package/content/container-blocks/googlemaps.md +546 -0
  91. package/content/container-blocks/googlemapsheatmap.md +607 -0
  92. package/content/container-blocks/googlemapsscript.md +61 -0
  93. package/content/container-blocks/header.md +302 -0
  94. package/content/container-blocks/label.md +739 -0
  95. package/content/container-blocks/layout.md +604 -0
  96. package/content/container-blocks/masonry.md +1090 -0
  97. package/content/container-blocks/mobilemenu.md +1244 -0
  98. package/content/container-blocks/modal.md +1180 -0
  99. package/content/container-blocks/pageheadermenu.md +614 -0
  100. package/content/container-blocks/pagesidebarlayout.md +438 -0
  101. package/content/container-blocks/pagesidermenu.md +651 -0
  102. package/content/container-blocks/popover.md +1421 -0
  103. package/content/container-blocks/result.md +972 -0
  104. package/content/container-blocks/sider.md +1064 -0
  105. package/content/container-blocks/span.md +747 -0
  106. package/content/container-blocks/spinner.md +267 -0
  107. package/content/container-blocks/splitter.md +1735 -0
  108. package/content/container-blocks/tabs.md +1718 -0
  109. package/content/container-blocks/tooltip.md +1274 -0
  110. package/content/container-blocks/watermark.md +515 -0
  111. package/content/controls/for.md +103 -0
  112. package/content/controls/if.md +107 -0
  113. package/content/controls/log.md +50 -0
  114. package/content/controls/parallel.md +71 -0
  115. package/content/controls/parallel_for.md +36 -0
  116. package/content/controls/reject.md +56 -0
  117. package/content/controls/return.md +66 -0
  118. package/content/controls/set_state.md +98 -0
  119. package/content/controls/switch.md +90 -0
  120. package/content/controls/throw.md +79 -0
  121. package/content/controls/try.md +88 -0
  122. package/content/deployment/docker.md +149 -0
  123. package/content/deployment/node-server.md +27 -0
  124. package/content/deployment/vercel.md +101 -0
  125. package/content/display-blocks/aggrid.md +1459 -0
  126. package/content/display-blocks/anchor.md +336 -0
  127. package/content/display-blocks/avatar.md +1154 -0
  128. package/content/display-blocks/breadcrumb.md +517 -0
  129. package/content/display-blocks/button.md +758 -0
  130. package/content/display-blocks/calendar.md +156 -0
  131. package/content/display-blocks/dangeroushtml.md +314 -0
  132. package/content/display-blocks/dangerousmarkdown.md +423 -0
  133. package/content/display-blocks/diffgit.md +44 -0
  134. package/content/display-blocks/difflist.md +225 -0
  135. package/content/display-blocks/diffsidebyside.md +56 -0
  136. package/content/display-blocks/difftimeline.md +94 -0
  137. package/content/display-blocks/divider.md +406 -0
  138. package/content/display-blocks/download.md +60 -0
  139. package/content/display-blocks/dropdownbutton.md +661 -0
  140. package/content/display-blocks/echart.md +418 -0
  141. package/content/display-blocks/floatbutton.md +545 -0
  142. package/content/display-blocks/html.md +311 -0
  143. package/content/display-blocks/icon.md +717 -0
  144. package/content/display-blocks/img.md +479 -0
  145. package/content/display-blocks/markdown.md +520 -0
  146. package/content/display-blocks/markdownwithcode.md +730 -0
  147. package/content/display-blocks/menu.md +1123 -0
  148. package/content/display-blocks/message.md +941 -0
  149. package/content/display-blocks/notification.md +1410 -0
  150. package/content/display-blocks/paragraph.md +643 -0
  151. package/content/display-blocks/progress.md +818 -0
  152. package/content/display-blocks/qrcode.md +519 -0
  153. package/content/display-blocks/s3download.md +240 -0
  154. package/content/display-blocks/search.md +360 -0
  155. package/content/display-blocks/skeleton.md +272 -0
  156. package/content/display-blocks/skeletonavatar.md +222 -0
  157. package/content/display-blocks/skeletonbutton.md +245 -0
  158. package/content/display-blocks/skeletoninput.md +223 -0
  159. package/content/display-blocks/skeletonparagraph.md +201 -0
  160. package/content/display-blocks/statistic.md +485 -0
  161. package/content/display-blocks/steps.md +585 -0
  162. package/content/display-blocks/tag.md +620 -0
  163. package/content/display-blocks/title.md +654 -0
  164. package/content/display-blocks/tour.md +2359 -0
  165. package/content/input-blocks/autocomplete.md +786 -0
  166. package/content/input-blocks/buttonselector.md +964 -0
  167. package/content/input-blocks/checkboxselector.md +765 -0
  168. package/content/input-blocks/checkboxswitch.md +497 -0
  169. package/content/input-blocks/colorselector.md +884 -0
  170. package/content/input-blocks/daterangeselector.md +777 -0
  171. package/content/input-blocks/dateselector.md +693 -0
  172. package/content/input-blocks/datetimeselector.md +791 -0
  173. package/content/input-blocks/inputgallery.md +528 -0
  174. package/content/input-blocks/monthselector.md +717 -0
  175. package/content/input-blocks/multipleselector.md +1337 -0
  176. package/content/input-blocks/numberinput.md +855 -0
  177. package/content/input-blocks/pagination.md +679 -0
  178. package/content/input-blocks/paragraphinput.md +1664 -0
  179. package/content/input-blocks/passwordinput.md +480 -0
  180. package/content/input-blocks/phonenumberinput.md +688 -0
  181. package/content/input-blocks/radioselector.md +820 -0
  182. package/content/input-blocks/ratingslider.md +684 -0
  183. package/content/input-blocks/s3uploadbutton.md +384 -0
  184. package/content/input-blocks/s3uploaddragger.md +305 -0
  185. package/content/input-blocks/s3uploadphoto.md +288 -0
  186. package/content/input-blocks/segmentedselector.md +782 -0
  187. package/content/input-blocks/selector.md +1162 -0
  188. package/content/input-blocks/switch.md +552 -0
  189. package/content/input-blocks/textarea.md +714 -0
  190. package/content/input-blocks/textinput.md +639 -0
  191. package/content/input-blocks/tiptapinput.md +226 -0
  192. package/content/input-blocks/tiptapmentioninput.md +471 -0
  193. package/content/input-blocks/titleinput.md +1094 -0
  194. package/content/input-blocks/treeinput.md +144 -0
  195. package/content/input-blocks/treemultipleselector.md +162 -0
  196. package/content/input-blocks/treeselector.md +185 -0
  197. package/content/input-blocks/upload.md +149 -0
  198. package/content/input-blocks/uploaddragger.md +85 -0
  199. package/content/input-blocks/uploadphoto.md +84 -0
  200. package/content/input-blocks/weekselector.md +630 -0
  201. package/content/list-blocks/controlledlist.md +498 -0
  202. package/content/list-blocks/list.md +529 -0
  203. package/content/list-blocks/listselector.md +301 -0
  204. package/content/list-blocks/masonrylist.md +230 -0
  205. package/content/migration/upgrade-guide.md +106 -0
  206. package/content/migration/v4-to-v5.md +589 -0
  207. package/content/migration/v5-to-v6.md +36 -0
  208. package/content/operators/_actions.md +58 -0
  209. package/content/operators/_and.md +76 -0
  210. package/content/operators/_api.md +254 -0
  211. package/content/operators/_app.md +114 -0
  212. package/content/operators/_args.md +65 -0
  213. package/content/operators/_array.md +331 -0
  214. package/content/operators/_base64.md +49 -0
  215. package/content/operators/_boolean.md +33 -0
  216. package/content/operators/_build.md +166 -0
  217. package/content/operators/_change_case.md +357 -0
  218. package/content/operators/_date.md +415 -0
  219. package/content/operators/_dayjs.md +128 -0
  220. package/content/operators/_diff.md +61 -0
  221. package/content/operators/_divide.md +32 -0
  222. package/content/operators/_eq.md +52 -0
  223. package/content/operators/_event.md +86 -0
  224. package/content/operators/_function.md +52 -0
  225. package/content/operators/_get.md +92 -0
  226. package/content/operators/_global.md +86 -0
  227. package/content/operators/_gt.md +50 -0
  228. package/content/operators/_gte.md +50 -0
  229. package/content/operators/_hash.md +112 -0
  230. package/content/operators/_if.md +30 -0
  231. package/content/operators/_if_none.md +47 -0
  232. package/content/operators/_index.md +48 -0
  233. package/content/operators/_input.md +86 -0
  234. package/content/operators/_intl.md +135 -0
  235. package/content/operators/_item.md +166 -0
  236. package/content/operators/_js.md +113 -0
  237. package/content/operators/_json.md +120 -0
  238. package/content/operators/_jsonata.md +152 -0
  239. package/content/operators/_locale.md +65 -0
  240. package/content/operators/_location.md +40 -0
  241. package/content/operators/_log.md +22 -0
  242. package/content/operators/_lt.md +50 -0
  243. package/content/operators/_lte.md +50 -0
  244. package/content/operators/_math.md +407 -0
  245. package/content/operators/_media.md +83 -0
  246. package/content/operators/_menu.md +62 -0
  247. package/content/operators/_module.md +340 -0
  248. package/content/operators/_mql.md +95 -0
  249. package/content/operators/_ne.md +62 -0
  250. package/content/operators/_not.md +33 -0
  251. package/content/operators/_number.md +159 -0
  252. package/content/operators/_nunjucks.md +117 -0
  253. package/content/operators/_object.md +253 -0
  254. package/content/operators/_operator.md +33 -0
  255. package/content/operators/_or.md +67 -0
  256. package/content/operators/_product.md +45 -0
  257. package/content/operators/_random.md +90 -0
  258. package/content/operators/_ref.md +80 -0
  259. package/content/operators/_regex.md +69 -0
  260. package/content/operators/_request.md +35 -0
  261. package/content/operators/_request_details.md +29 -0
  262. package/content/operators/_secret.md +56 -0
  263. package/content/operators/_state.md +134 -0
  264. package/content/operators/_step.md +98 -0
  265. package/content/operators/_string.md +327 -0
  266. package/content/operators/_subtract.md +24 -0
  267. package/content/operators/_sum.md +45 -0
  268. package/content/operators/_switch.md +37 -0
  269. package/content/operators/_t.md +96 -0
  270. package/content/operators/_theme.md +65 -0
  271. package/content/operators/_type.md +78 -0
  272. package/content/operators/_uri.md +49 -0
  273. package/content/operators/_url_query.md +92 -0
  274. package/content/operators/_user.md +154 -0
  275. package/content/operators/_uuid.md +118 -0
  276. package/content/operators/_var.md +88 -0
  277. package/content/operators/_yaml.md +96 -0
  278. package/content/other/introduction.md +39 -0
  279. package/content/other/next-auth-providers.md +3 -0
  280. package/content/other/updatesession.md +26 -0
  281. package/content/plugins/plugins-actions.md +80 -0
  282. package/content/plugins/plugins-connections.md +98 -0
  283. package/content/plugins/plugins-dev.md +138 -0
  284. package/content/plugins/plugins-introduction.md +29 -0
  285. package/content/plugins/plugins-operators.md +71 -0
  286. package/content/testing/e2e-auth.md +108 -0
  287. package/content/testing/e2e-configuration.md +107 -0
  288. package/content/testing/e2e-getting-started.md +96 -0
  289. package/content/testing/e2e-introduction.md +53 -0
  290. package/content/testing/e2e-mocking.md +155 -0
  291. package/content/testing/e2e-writing-tests.md +214 -0
  292. package/content/tutorial/tutorial-actions-operators.md +222 -0
  293. package/content/tutorial/tutorial-add-blocks.md +86 -0
  294. package/content/tutorial/tutorial-create-page.md +57 -0
  295. package/content/tutorial/tutorial-display-data-page.md +181 -0
  296. package/content/tutorial/tutorial-next-steps.md +53 -0
  297. package/content/tutorial/tutorial-requests-sql.md +22 -0
  298. package/content/tutorial/tutorial-start.md +71 -0
  299. package/content/user-authentication/auth-providers.md +15 -0
  300. package/content/user-authentication/login-and-logout.md +122 -0
  301. package/content/user-authentication/users-introduction.md +31 -0
  302. package/index.json +2281 -0
  303. package/package.json +34 -0
  304. package/scripts/extractAgentDocs.js +130 -0
@@ -0,0 +1,964 @@
1
+ # ButtonSelector
2
+
3
+ Radio group styled as toggle buttons.
4
+
5
+ ```yaml
6
+ - id: style_solid
7
+ type: ButtonSelector
8
+ properties:
9
+ title: Solid Style (default)
10
+ variant: solid
11
+ options:
12
+ - label: Daily
13
+ value: daily
14
+ - label: Weekly
15
+ value: weekly
16
+ - label: Monthly
17
+ value: monthly
18
+ - id: style_outline
19
+ type: ButtonSelector
20
+ properties:
21
+ title: Outline Style
22
+ variant: outlined
23
+ options:
24
+ - label: Daily
25
+ value: daily
26
+ - label: Weekly
27
+ value: weekly
28
+ - label: Monthly
29
+ value: monthly
30
+ - id: solid_outline_alignment
31
+ type: ButtonSelector
32
+ properties:
33
+ title: Solid - filled background on selected
34
+ variant: solid
35
+ options:
36
+ - label: Left
37
+ value: left
38
+ - label: Center
39
+ value: center
40
+ - label: Right
41
+ value: right
42
+ - label: Justify
43
+ value: justify
44
+ ```
45
+
46
+ ```yaml
47
+ - id: string_options
48
+ type: ButtonSelector
49
+ properties:
50
+ title: Simple String Array
51
+ variant: solid
52
+ options:
53
+ - Red
54
+ - Green
55
+ - Blue
56
+ - id: status_options
57
+ type: ButtonSelector
58
+ properties:
59
+ title: Object Options with Labels
60
+ variant: solid
61
+ options:
62
+ - label: Active
63
+ value: active
64
+ - label: Pending
65
+ value: pending
66
+ - label: Archived
67
+ value: archived
68
+ - id: html_labels
69
+ type: ButtonSelector
70
+ properties:
71
+ title: HTML in Option Labels
72
+ variant: solid
73
+ options:
74
+ - label: <b>Bold</b>
75
+ value: bold
76
+ - label: <i>Italic</i>
77
+ value: italic
78
+ - label: <u>Underline</u>
79
+ value: underline
80
+ - id: html_emoji_labels
81
+ type: ButtonSelector
82
+ properties:
83
+ title: Emoji Labels
84
+ variant: solid
85
+ options:
86
+ - label: "&#x2705; Approved"
87
+ value: approved
88
+ - label: "&#x23F3; Pending"
89
+ value: pending
90
+ - label: "&#x274C; Rejected"
91
+ value: rejected
92
+ ```
93
+
94
+ ```yaml
95
+ - id: size_small
96
+ type: ButtonSelector
97
+ properties:
98
+ title: Small
99
+ size: small
100
+ variant: solid
101
+ options:
102
+ - Small
103
+ - Medium
104
+ - Large
105
+ - id: size_default
106
+ type: ButtonSelector
107
+ properties:
108
+ title: Default
109
+ variant: solid
110
+ options:
111
+ - Small
112
+ - Medium
113
+ - Large
114
+ - id: size_large
115
+ type: ButtonSelector
116
+ properties:
117
+ title: Large
118
+ size: large
119
+ variant: solid
120
+ options:
121
+ - Small
122
+ - Medium
123
+ - Large
124
+ ```
125
+
126
+ ```yaml
127
+ - id: size_small_outline
128
+ type: ButtonSelector
129
+ properties:
130
+ title: Small Outline
131
+ size: small
132
+ variant: outlined
133
+ options:
134
+ - Option A
135
+ - Option B
136
+ - Option C
137
+ - id: size_default_outline
138
+ type: ButtonSelector
139
+ properties:
140
+ title: Default Outline
141
+ variant: outlined
142
+ options:
143
+ - Option A
144
+ - Option B
145
+ - Option C
146
+ - id: size_large_outline
147
+ type: ButtonSelector
148
+ properties:
149
+ title: Large Outline
150
+ size: large
151
+ variant: outlined
152
+ options:
153
+ - Option A
154
+ - Option B
155
+ - Option C
156
+ ```
157
+
158
+ ```yaml
159
+ - id: many_options
160
+ type: ButtonSelector
161
+ properties:
162
+ title: Day of the Week
163
+ variant: solid
164
+ size: small
165
+ options:
166
+ - label: Mon
167
+ value: monday
168
+ - label: Tue
169
+ value: tuesday
170
+ - label: Wed
171
+ value: wednesday
172
+ - label: Thu
173
+ value: thursday
174
+ - label: Fri
175
+ value: friday
176
+ - label: Sat
177
+ value: saturday
178
+ - label: Sun
179
+ value: sunday
180
+ - id: two_options
181
+ type: ButtonSelector
182
+ properties:
183
+ title: Toggle
184
+ variant: solid
185
+ options:
186
+ - label: Yes
187
+ value: true
188
+ - label: No
189
+ value: false
190
+ ```
191
+
192
+ ```yaml
193
+ - id: disabled_solid
194
+ type: ButtonSelector
195
+ properties:
196
+ title: Disabled (Solid)
197
+ disabled: true
198
+ variant: solid
199
+ options:
200
+ - label: Option A
201
+ value: a
202
+ - label: Option B
203
+ value: b
204
+ - label: Option C
205
+ value: c
206
+ - id: disabled_outline
207
+ type: ButtonSelector
208
+ properties:
209
+ title: Disabled (Outline)
210
+ disabled: true
211
+ variant: outlined
212
+ options:
213
+ - label: Option A
214
+ value: a
215
+ - label: Option B
216
+ value: b
217
+ - label: Option C
218
+ value: c
219
+ - id: disabled_option_solid
220
+ type: ButtonSelector
221
+ properties:
222
+ title: Disabled Individual Option (Solid)
223
+ variant: solid
224
+ options:
225
+ - label: Available
226
+ value: available
227
+ - label: Unavailable
228
+ value: unavailable
229
+ disabled: true
230
+ - label: In Stock
231
+ value: in_stock
232
+ - id: disabled_multiple_options
233
+ type: ButtonSelector
234
+ properties:
235
+ title: Multiple Disabled Options
236
+ variant: solid
237
+ options:
238
+ - label: Active
239
+ value: active
240
+ - label: Suspended
241
+ value: suspended
242
+ disabled: true
243
+ - label: Pending
244
+ value: pending
245
+ - label: Terminated
246
+ value: terminated
247
+ disabled: true
248
+ ```
249
+
250
+ ```yaml
251
+ - id: option_styles
252
+ type: ButtonSelector
253
+ properties:
254
+ title: Custom Option Styles
255
+ variant: outlined
256
+ options:
257
+ - label: Normal
258
+ value: normal
259
+ - label: Highlighted
260
+ value: highlighted
261
+ style:
262
+ fontWeight: bold
263
+ - label: Subtle
264
+ value: subtle
265
+ style:
266
+ fontStyle: italic
267
+ - id: option_styles_solid
268
+ type: ButtonSelector
269
+ properties:
270
+ title: Styled Solid Options
271
+ variant: solid
272
+ options:
273
+ - label: Default
274
+ value: default
275
+ - label: Emphasized
276
+ value: emphasized
277
+ style:
278
+ fontWeight: bold
279
+ letterSpacing: 1
280
+ - label: Light
281
+ value: light
282
+ style:
283
+ fontStyle: italic
284
+ opacity: 0.8
285
+ - id: option_styles_mixed
286
+ type: ButtonSelector
287
+ properties:
288
+ title: Mixed Option Styling
289
+ variant: outlined
290
+ options:
291
+ - label: Regular
292
+ value: regular
293
+ - label: Important
294
+ value: important
295
+ style:
296
+ fontWeight: bold
297
+ textDecoration: underline
298
+ - label: Muted
299
+ value: muted
300
+ style:
301
+ opacity: 0.6
302
+ ```
303
+
304
+ ```yaml
305
+ - id: color_default
306
+ type: ButtonSelector
307
+ properties:
308
+ title: Default Color (primary)
309
+ variant: solid
310
+ options:
311
+ - label: Option A
312
+ value: a
313
+ - label: Option B
314
+ value: b
315
+ - label: Option C
316
+ value: c
317
+ - id: color_red
318
+ type: ButtonSelector
319
+ properties:
320
+ title: "Color: red"
321
+ variant: solid
322
+ color: red
323
+ options:
324
+ - label: Option A
325
+ value: a
326
+ - label: Option B
327
+ value: b
328
+ - label: Option C
329
+ value: c
330
+ - id: color_green
331
+ type: ButtonSelector
332
+ properties:
333
+ title: "Color: green"
334
+ variant: solid
335
+ color: green
336
+ options:
337
+ - label: Option A
338
+ value: a
339
+ - label: Option B
340
+ value: b
341
+ - label: Option C
342
+ value: c
343
+ - id: color_purple
344
+ type: ButtonSelector
345
+ properties:
346
+ title: "Color: purple"
347
+ variant: solid
348
+ color: purple
349
+ options:
350
+ - label: Option A
351
+ value: a
352
+ - label: Option B
353
+ value: b
354
+ - label: Option C
355
+ value: c
356
+ ```
357
+
358
+ ```yaml
359
+ - id: color_hex_coral
360
+ type: ButtonSelector
361
+ properties:
362
+ title: Coral (#ff6b6b)
363
+ variant: solid
364
+ color: "#ff6b6b"
365
+ options:
366
+ - Low
367
+ - Medium
368
+ - High
369
+ - id: color_hex_teal
370
+ type: ButtonSelector
371
+ properties:
372
+ title: Teal (#20c997)
373
+ variant: solid
374
+ color: "#20c997"
375
+ options:
376
+ - Low
377
+ - Medium
378
+ - High
379
+ - id: color_hex_indigo
380
+ type: ButtonSelector
381
+ properties:
382
+ title: Indigo (#4c6ef5)
383
+ variant: solid
384
+ color: "#4c6ef5"
385
+ options:
386
+ - Low
387
+ - Medium
388
+ - High
389
+ - id: color_hex_light
390
+ type: ButtonSelector
391
+ properties:
392
+ title: Light color (#ffe58f) — text auto-contrasts to black
393
+ variant: solid
394
+ color: "#ffe58f"
395
+ options:
396
+ - Low
397
+ - Medium
398
+ - High
399
+ ```
400
+
401
+ ```yaml
402
+ - id: color_outline_red
403
+ type: ButtonSelector
404
+ properties:
405
+ title: Red Outline
406
+ variant: outlined
407
+ color: red
408
+ options:
409
+ - Option A
410
+ - Option B
411
+ - Option C
412
+ - id: color_outline_green
413
+ type: ButtonSelector
414
+ properties:
415
+ title: Green Outline
416
+ variant: outlined
417
+ color: green
418
+ options:
419
+ - Option A
420
+ - Option B
421
+ - Option C
422
+ - id: color_outline_hex
423
+ type: ButtonSelector
424
+ properties:
425
+ title: Custom Hex Outline (#e64980)
426
+ variant: outlined
427
+ color: "#e64980"
428
+ options:
429
+ - Option A
430
+ - Option B
431
+ - Option C
432
+ ```
433
+
434
+ ```yaml
435
+ - id: dark_mode_box
436
+ type: Box
437
+ style:
438
+ background: "#141414"
439
+ padding: 24
440
+ borderRadius: 8
441
+ blocks:
442
+ - id: dark_mode_provider
443
+ type: ConfigProvider
444
+ properties:
445
+ algorithm: dark
446
+ blocks:
447
+ - id: dark_color_solid
448
+ type: ButtonSelector
449
+ properties:
450
+ title: Solid color (dark)
451
+ variant: solid
452
+ color: "#1677ff"
453
+ options:
454
+ - Option A
455
+ - Option B
456
+ - Option C
457
+ - id: dark_color_outline
458
+ type: ButtonSelector
459
+ properties:
460
+ title: Outline color with selected tint (dark)
461
+ variant: outlined
462
+ color: "#1677ff"
463
+ options:
464
+ - Option A
465
+ - Option B
466
+ - Option C
467
+ ```
468
+
469
+ ```yaml
470
+ - id: label_title
471
+ type: ButtonSelector
472
+ properties:
473
+ title: Default Label
474
+ variant: solid
475
+ options:
476
+ - label: Option A
477
+ value: a
478
+ - label: Option B
479
+ value: b
480
+ - id: label_extra
481
+ type: ButtonSelector
482
+ properties:
483
+ title: With Extra Text
484
+ label:
485
+ extra: Choose your preferred view mode.
486
+ variant: solid
487
+ options:
488
+ - label: Grid
489
+ value: grid
490
+ - label: List
491
+ value: list
492
+ - label: Table
493
+ value: table
494
+ - id: label_no_colon
495
+ type: ButtonSelector
496
+ properties:
497
+ title: No Colon
498
+ label:
499
+ colon: false
500
+ variant: solid
501
+ options:
502
+ - label: Option A
503
+ value: a
504
+ - label: Option B
505
+ value: b
506
+ - id: label_inline
507
+ type: ButtonSelector
508
+ properties:
509
+ title: Inline Label
510
+ label:
511
+ inline: true
512
+ span: 6
513
+ variant: solid
514
+ options:
515
+ - label: Left
516
+ value: left
517
+ - label: Center
518
+ value: center
519
+ - label: Right
520
+ value: right
521
+ - id: no_label_solid
522
+ type: ButtonSelector
523
+ properties:
524
+ label:
525
+ disabled: true
526
+ variant: solid
527
+ options:
528
+ - label: Left
529
+ value: left
530
+ - label: Center
531
+ value: center
532
+ - label: Right
533
+ value: right
534
+ ```
535
+
536
+ ```yaml
537
+ - id: html_title
538
+ type: ButtonSelector
539
+ properties:
540
+ title: <b>Bold Title</b>
541
+ variant: solid
542
+ options:
543
+ - Option A
544
+ - Option B
545
+ - Option C
546
+ - id: html_title_colored
547
+ type: ButtonSelector
548
+ properties:
549
+ title: '<span style="color: #1677ff;">Colored Title</span>'
550
+ variant: solid
551
+ options:
552
+ - Option A
553
+ - Option B
554
+ - Option C
555
+ ```
556
+
557
+ ```yaml
558
+ - id: style_custom_width
559
+ type: ButtonSelector
560
+ properties:
561
+ title: Custom Width
562
+ variant: solid
563
+ options:
564
+ - Option A
565
+ - Option B
566
+ - Option C
567
+ style:
568
+ width: 400
569
+ ```
570
+
571
+ ```yaml
572
+ - id: class_padding
573
+ type: ButtonSelector
574
+ properties:
575
+ title: Tailwind Padding
576
+ variant: solid
577
+ options:
578
+ - label: Option A
579
+ value: a
580
+ - label: Option B
581
+ value: b
582
+ - label: Option C
583
+ value: c
584
+ class: p-4
585
+ - id: class_shadow_rounded
586
+ type: ButtonSelector
587
+ properties:
588
+ title: Shadow and Rounded
589
+ variant: solid
590
+ options:
591
+ - label: Option A
592
+ value: a
593
+ - label: Option B
594
+ value: b
595
+ - label: Option C
596
+ value: c
597
+ class: shadow-md rounded-lg p-2
598
+ - id: class_background
599
+ type: ButtonSelector
600
+ properties:
601
+ title: Background Color
602
+ variant: solid
603
+ options:
604
+ - label: Option A
605
+ value: a
606
+ - label: Option B
607
+ value: b
608
+ - label: Option C
609
+ value: c
610
+ class: bg-bg-layout p-3 rounded
611
+ ```
612
+
613
+ ```yaml
614
+ - id: theme_large_radius
615
+ type: ButtonSelector
616
+ properties:
617
+ title: Large Border Radius
618
+ variant: solid
619
+ options:
620
+ - label: Option A
621
+ value: a
622
+ - label: Option B
623
+ value: b
624
+ - label: Option C
625
+ value: c
626
+ theme:
627
+ borderRadius: 20
628
+ - id: theme_button_bg
629
+ type: ButtonSelector
630
+ properties:
631
+ title: Custom Button Background
632
+ variant: solid
633
+ options:
634
+ - label: Option A
635
+ value: a
636
+ - label: Option B
637
+ value: b
638
+ - label: Option C
639
+ value: c
640
+ theme:
641
+ buttonSolidCheckedBg: "#531dab"
642
+ buttonSolidCheckedHoverBg: "#722ed1"
643
+ buttonSolidCheckedActiveBg: "#391085"
644
+ - id: theme_button_color
645
+ type: ButtonSelector
646
+ properties:
647
+ title: Custom Button Text Color
648
+ variant: outlined
649
+ options:
650
+ - label: Option A
651
+ value: a
652
+ - label: Option B
653
+ value: b
654
+ - label: Option C
655
+ value: c
656
+ theme:
657
+ buttonColor: "#531dab"
658
+ - id: theme_pill_selector
659
+ type: ButtonSelector
660
+ properties:
661
+ title: Pill Style Selector
662
+ variant: solid
663
+ color: "#7c3aed"
664
+ options:
665
+ - label: Free
666
+ value: free
667
+ - label: Pro
668
+ value: pro
669
+ - label: Enterprise
670
+ value: enterprise
671
+ theme:
672
+ borderRadius: 20
673
+ controlHeight: 40
674
+ fontSize: 15
675
+ - id: theme_compact_selector
676
+ type: ButtonSelector
677
+ properties:
678
+ title: Compact Selector
679
+ variant: solid
680
+ size: small
681
+ options:
682
+ - label: XS
683
+ value: xs
684
+ - label: S
685
+ value: s
686
+ - label: M
687
+ value: m
688
+ - label: L
689
+ value: l
690
+ - label: XL
691
+ value: xl
692
+ theme:
693
+ buttonPaddingInline: 6
694
+ borderRadiusSM: 2
695
+ ```
696
+
697
+ ```yaml
698
+ - id: applied_survey_card
699
+ type: Card
700
+ properties:
701
+ title: Customer Satisfaction Survey
702
+ blocks:
703
+ - id: applied_survey_name
704
+ type: TextInput
705
+ properties:
706
+ title: Your Name
707
+ placeholder: Enter your full name
708
+ - id: applied_survey_rating
709
+ type: ButtonSelector
710
+ properties:
711
+ title: How satisfied are you with our service?
712
+ variant: solid
713
+ color: "#1677ff"
714
+ options:
715
+ - label: Very Unsatisfied
716
+ value: 1
717
+ - label: Unsatisfied
718
+ value: 2
719
+ - label: Neutral
720
+ value: 3
721
+ - label: Satisfied
722
+ value: 4
723
+ - label: Very Satisfied
724
+ value: 5
725
+ - id: applied_survey_recommend
726
+ type: ButtonSelector
727
+ properties:
728
+ title: Would you recommend us to a friend?
729
+ variant: solid
730
+ options:
731
+ - label: Definitely
732
+ value: definitely
733
+ - label: Probably
734
+ value: probably
735
+ - label: Not Sure
736
+ value: not_sure
737
+ - label: Unlikely
738
+ value: unlikely
739
+ - id: applied_survey_comments
740
+ type: TextArea
741
+ properties:
742
+ title: Additional Comments
743
+ placeholder: Tell us more about your experience...
744
+ - id: applied_survey_submit
745
+ type: Button
746
+ properties:
747
+ title: Submit Survey
748
+ type: primary
749
+ icon: AiOutlineSend
750
+ events:
751
+ onClick:
752
+ - id: survey_submit_action
753
+ type: DisplayMessage
754
+ params:
755
+ content:
756
+ _string.concat:
757
+ - "Thank you for your feedback! Rating: "
758
+ - _state: applied_survey_rating
759
+ status: success
760
+ ```
761
+
762
+ ```yaml
763
+ - id: applied_settings_card
764
+ type: Card
765
+ properties:
766
+ title: Display Settings
767
+ blocks:
768
+ - id: applied_settings_theme
769
+ type: ButtonSelector
770
+ properties:
771
+ title: Theme
772
+ variant: solid
773
+ options:
774
+ - label: Light
775
+ value: light
776
+ - label: Dark
777
+ value: dark
778
+ - label: System
779
+ value: system
780
+ events:
781
+ onChange:
782
+ - id: theme_change_action
783
+ type: SetState
784
+ params:
785
+ selected_theme:
786
+ _state: applied_settings_theme
787
+ - id: applied_settings_language
788
+ type: ButtonSelector
789
+ properties:
790
+ title: Language
791
+ variant: outlined
792
+ options:
793
+ - label: English
794
+ value: en
795
+ - label: Spanish
796
+ value: es
797
+ - label: French
798
+ value: fr
799
+ - label: German
800
+ value: de
801
+ - id: applied_settings_font_size
802
+ type: ButtonSelector
803
+ properties:
804
+ title: Font Size
805
+ variant: solid
806
+ size: small
807
+ options:
808
+ - label: Small
809
+ value: small
810
+ - label: Medium
811
+ value: medium
812
+ - label: Large
813
+ value: large
814
+ - id: applied_settings_save
815
+ type: Button
816
+ properties:
817
+ title: Save Settings
818
+ type: primary
819
+ icon: AiOutlineSave
820
+ events:
821
+ onClick:
822
+ - id: settings_save_action
823
+ type: DisplayMessage
824
+ params:
825
+ content: Settings saved successfully
826
+ status: success
827
+ - id: settings_set_global
828
+ type: SetGlobal
829
+ params:
830
+ theme:
831
+ _state: applied_settings_theme
832
+ language:
833
+ _state: applied_settings_language
834
+ fontSize:
835
+ _state: applied_settings_font_size
836
+ ```
837
+
838
+ ```yaml
839
+ - id: per_option_color_outline
840
+ type: ButtonSelector
841
+ properties:
842
+ title: Outline — color per option
843
+ variant: outlined
844
+ options:
845
+ - label: Low
846
+ value: low
847
+ color: "#16a34a"
848
+ - label: Medium
849
+ value: medium
850
+ color: "#d97706"
851
+ - label: High
852
+ value: high
853
+ color: "#dc2626"
854
+ - id: per_option_color_solid
855
+ type: ButtonSelector
856
+ properties:
857
+ title: Solid — color per option (selected fills in its own color)
858
+ variant: solid
859
+ options:
860
+ - label: To do
861
+ value: todo
862
+ color: "#64748b"
863
+ - label: Doing
864
+ value: doing
865
+ color: "#2563eb"
866
+ - label: Done
867
+ value: done
868
+ color: "#16a34a"
869
+ ```
870
+
871
+ ```yaml
872
+ - id: data_button_selector
873
+ type: ButtonSelector
874
+ properties:
875
+ title: Priority
876
+ data:
877
+ - id: 1
878
+ name: Low
879
+ - id: 2
880
+ name: Medium
881
+ - id: 3
882
+ name: High
883
+ html: "{{ item.name }}"
884
+ valueKey: id
885
+ ```
886
+
887
+ | Property | Type | Default | Description |
888
+ | --- | --- | --- | --- |
889
+ | `variant` | string | `"solid"` | Visual variant of the selected option button, matching the Button block. Enum: `solid`, `outlined`. |
890
+ | `buttonStyle` | string | - | Deprecated — use `variant` (solid \| outlined) instead. Enum: `solid`, `outline`. |
891
+ | `color` | string | - | Color applied to the selected button. Fills the background in solid mode (with auto-contrasting text) and the border/text in outline mode. |
892
+ | `disabled` | boolean | `false` | Disable the block if true. |
893
+ | `options` | array | `[]` | Options can either be an array of primitive values, on an array of label, value pairs - supports html. |
894
+ | `options.$.label` | string | - | Value label shown to user - supports html. |
895
+ | `options.$.value` | string \| number \| boolean | - | Option value. |
896
+ | `options.$.disabled` | boolean | `false` | Disable the option if true. |
897
+ | `options.$.style` | object | - | Css style to apply to the option. |
898
+ | `options.$.color` | string | - | Color applied to this option when it is selected. Falls back to the block-level color when not set. |
899
+ | `data` | array | - | Alternative to `options`: an array of raw rows. Each row is rendered to a label with the `html` template, and `valueKey` selects which field becomes the value. Use this to drive a selector directly from data without building label/value pairs in your request. |
900
+ | `html` | string | - | Nunjucks template that renders each option label when using `data`. The context exposes `item` (the current row) and `index` (the zero-based row index). Ignored when `options` is used. |
901
+ | `valueKey` | string | - | Field used as the selected value. With `options` it names the value field (defaults to "value"). With `data` it names the field stored when an option is selected; omit it to store the whole row. Supports dotted paths (e.g. "user.id"). |
902
+ | `primaryKey` | string | - | Field used to match the current value (e.g. set with SetState) back to an option for highlighting. Defaults to `valueKey`. Set this when the stored value is the whole row but a single field (e.g. "id") uniquely identifies it. In the tree selectors it also serves as each node’s id, referenced by `parentKey`. Supports dotted paths. |
903
+ | `size` | string | `"default"` | Size of the block. Enum: `small`, `default`, `large`. |
904
+ | `label` | object | - | Label properties. |
905
+ | `label.align` | string | `"left"` | Align label left or right when inline. Enum: `left`, `right`. |
906
+ | `label.colon` | boolean | `true` | Append label with colon. |
907
+ | `label.extra` | string | - | Extra text to display beneath the content - supports html. |
908
+ | `label.title` | string | - | Label title - supports html. |
909
+ | `label.tooltip` | string \| object | - | Help tooltip shown via an icon beside the label. A string sets the tooltip text (supports html), or an object to also customize the icon and color. Use the block's onTooltipClick event to respond to clicks on the icon. |
910
+ | `label.tooltip.title` | string | - | Tooltip text shown on hover - supports html. |
911
+ | `label.tooltip.icon` | string | `"AiOutlineQuestionCircle"` | Name of the icon to show beside the label. |
912
+ | `label.tooltip.color` | string | - | Color of the tooltip icon. |
913
+ | `label.span` | number | - | Label inline span. |
914
+ | `label.disabled` | boolean | `false` | Hide input label. |
915
+ | `label.hasFeedback` | boolean | `true` | Display feedback extra from validation, this does not disable validation. |
916
+ | `label.inline` | boolean | `false` | Render input and label inline. |
917
+ | `title` | string | - | Title to describe the input component, if no title is specified the block id is displayed - supports html. |
918
+ | `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design radio tokens](https://ant.design/components/radio#design-token). |
919
+ | `theme.radioSize` | number | `16` | Size of the radio dot element. |
920
+ | `theme.dotSize` | number | `8` | Size of the inner dot when checked. |
921
+ | `theme.dotColorDisabled` | string | - | Color of the inner dot when disabled. |
922
+ | `theme.buttonSolidCheckedColor` | string | - | Text color of checked button in solid style. |
923
+ | `theme.buttonSolidCheckedBg` | string | - | Background color of checked button in solid style. |
924
+ | `theme.buttonSolidCheckedHoverBg` | string | - | Background color of checked button on hover in solid style. |
925
+ | `theme.buttonSolidCheckedActiveBg` | string | - | Background color of checked button on active in solid style. |
926
+ | `theme.buttonBg` | string | - | Background color of unchecked radio buttons. |
927
+ | `theme.buttonCheckedBg` | string | - | Background color of checked button in outline style. |
928
+ | `theme.buttonColor` | string | - | Text color of radio buttons. |
929
+ | `theme.buttonCheckedBgDisabled` | string | - | Background color of checked button when disabled. |
930
+ | `theme.buttonCheckedColorDisabled` | string | - | Text color of checked button when disabled. |
931
+ | `theme.buttonPaddingInline` | number | `15` | Horizontal padding inside radio buttons. |
932
+ | `theme.wrapperMarginInlineEnd` | number | `8` | Margin at the inline end of each radio wrapper. |
933
+ | `theme.radioColor` | string | - | Color of the radio dot when checked. |
934
+ | `theme.radioBgColor` | string | - | Background color of the radio circle when checked. |
935
+ | `theme.borderRadius` | number | `6` | Border radius for default-sized radio buttons. |
936
+ | `theme.borderRadiusLG` | number | `8` | Border radius for large radio buttons. |
937
+ | `theme.borderRadiusSM` | number | `4` | Border radius for small radio buttons. |
938
+ | `theme.controlHeight` | number | `32` | Height of default-sized radio buttons. |
939
+ | `theme.controlHeightLG` | number | `40` | Height of large radio buttons. |
940
+ | `theme.controlHeightSM` | number | `24` | Height of small radio buttons. |
941
+ | `theme.fontSize` | number | `14` | Font size for default-sized radio buttons. |
942
+ | `theme.fontSizeLG` | number | `16` | Font size for large radio buttons. |
943
+ | `theme.lineWidth` | number | `1` | Border width of radio buttons. |
944
+ | `theme.colorPrimary` | string | - | Primary color used for checked state border and text. |
945
+ | `theme.colorPrimaryHover` | string | - | Primary hover color for checked radio buttons. |
946
+ | `theme.colorPrimaryActive` | string | - | Primary active color for checked radio buttons. |
947
+ | `theme.colorBgContainer` | string | - | Background color for the radio button container. |
948
+ | `theme.colorText` | string | - | Default text color for radio buttons. |
949
+ | `theme.colorBorder` | string | - | Border color for radio buttons. |
950
+
951
+ | Event | Event Data | Description |
952
+ | --- | --- | --- |
953
+ | `onChange` | `{ value }` | Trigger actions when selection is changed. |
954
+ | `onTooltipClick` | \- | Trigger actions when the tooltip icon is clicked. |
955
+
956
+ | Key | Target |
957
+ | --- | --- |
958
+ | `/block` | Outer block wrapper (always available). |
959
+ | `/element` | The ButtonSelector element. |
960
+ | `/label` | The ButtonSelector label. |
961
+ | `/extra` | The ButtonSelector extra content. |
962
+ | `/feedback` | The ButtonSelector validation feedback. |
963
+
964
+ No slots defined.