@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,758 @@
1
+ # Button
2
+
3
+ Button with colors, variants, sizes, shapes, icons, ghost, and block modes.
4
+
5
+ ```yaml
6
+ - id: variant_solid
7
+ type: Button
8
+ layout:
9
+ flex: 0 0 auto
10
+ properties:
11
+ title: solid
12
+ color: primary
13
+ variant: solid
14
+ - id: variant_outlined
15
+ type: Button
16
+ layout:
17
+ flex: 0 0 auto
18
+ properties:
19
+ title: outlined
20
+ color: primary
21
+ variant: outlined
22
+ - id: variant_dashed
23
+ type: Button
24
+ layout:
25
+ flex: 0 0 auto
26
+ properties:
27
+ title: dashed
28
+ color: primary
29
+ variant: dashed
30
+ - id: variant_filled
31
+ type: Button
32
+ layout:
33
+ flex: 0 0 auto
34
+ properties:
35
+ title: filled
36
+ color: primary
37
+ variant: filled
38
+ - id: variant_text
39
+ type: Button
40
+ layout:
41
+ flex: 0 0 auto
42
+ properties:
43
+ title: text
44
+ color: primary
45
+ variant: text
46
+ - id: variant_link
47
+ type: Button
48
+ layout:
49
+ flex: 0 0 auto
50
+ properties:
51
+ title: link
52
+ color: primary
53
+ variant: link
54
+ ```
55
+
56
+ ```yaml
57
+ - id: colors_preset_row
58
+ type: Box
59
+ layout:
60
+ gap: 6
61
+ justify: flex-start
62
+ blocks:
63
+ - id: color_primary
64
+ type: Button
65
+ layout:
66
+ flex: 0 0 auto
67
+ properties:
68
+ title: primary
69
+ color: primary
70
+ variant: solid
71
+ size: small
72
+ - id: color_danger
73
+ type: Button
74
+ layout:
75
+ flex: 0 0 auto
76
+ properties:
77
+ title: danger
78
+ color: danger
79
+ variant: solid
80
+ size: small
81
+ - id: color_blue
82
+ type: Button
83
+ layout:
84
+ flex: 0 0 auto
85
+ properties:
86
+ title: blue
87
+ color: blue
88
+ variant: solid
89
+ size: small
90
+ - id: color_green
91
+ type: Button
92
+ layout:
93
+ flex: 0 0 auto
94
+ properties:
95
+ title: green
96
+ color: green
97
+ variant: solid
98
+ size: small
99
+ - id: color_purple
100
+ type: Button
101
+ layout:
102
+ flex: 0 0 auto
103
+ properties:
104
+ title: purple
105
+ color: purple
106
+ variant: solid
107
+ size: small
108
+ - id: colors_hex_row
109
+ type: Box
110
+ layout:
111
+ gap: 6
112
+ justify: flex-start
113
+ blocks:
114
+ - id: hex_coral
115
+ type: Button
116
+ layout:
117
+ flex: 0 0 auto
118
+ properties:
119
+ title: "#ff6b6b"
120
+ color: "#ff6b6b"
121
+ variant: solid
122
+ size: small
123
+ - id: hex_teal
124
+ type: Button
125
+ layout:
126
+ flex: 0 0 auto
127
+ properties:
128
+ title: "#20c997"
129
+ color: "#20c997"
130
+ variant: solid
131
+ size: small
132
+ - id: hex_indigo
133
+ type: Button
134
+ layout:
135
+ flex: 0 0 auto
136
+ properties:
137
+ title: "#4c6ef5"
138
+ color: "#4c6ef5"
139
+ variant: solid
140
+ size: small
141
+ - id: colors_outlined_row
142
+ type: Box
143
+ layout:
144
+ gap: 6
145
+ justify: flex-start
146
+ blocks:
147
+ - id: co_primary
148
+ type: Button
149
+ layout:
150
+ flex: 0 0 auto
151
+ properties:
152
+ title: primary
153
+ color: primary
154
+ variant: outlined
155
+ size: small
156
+ - id: co_danger
157
+ type: Button
158
+ layout:
159
+ flex: 0 0 auto
160
+ properties:
161
+ title: danger
162
+ color: danger
163
+ variant: outlined
164
+ size: small
165
+ - id: co_hex_pink
166
+ type: Button
167
+ layout:
168
+ flex: 0 0 auto
169
+ properties:
170
+ title: "#e64980"
171
+ color: "#e64980"
172
+ variant: outlined
173
+ size: small
174
+ ```
175
+
176
+ ```yaml
177
+ - id: size_small
178
+ type: Button
179
+ layout:
180
+ flex: 0 0 auto
181
+ properties:
182
+ title: Small
183
+ size: small
184
+ color: primary
185
+ variant: solid
186
+ - id: size_default
187
+ type: Button
188
+ layout:
189
+ flex: 0 0 auto
190
+ properties:
191
+ title: Default
192
+ color: primary
193
+ variant: solid
194
+ - id: size_large
195
+ type: Button
196
+ layout:
197
+ flex: 0 0 auto
198
+ properties:
199
+ title: Large
200
+ size: large
201
+ color: primary
202
+ variant: solid
203
+ ```
204
+
205
+ ```yaml
206
+ - id: shape_square
207
+ type: Button
208
+ layout:
209
+ flex: 0 0 auto
210
+ properties:
211
+ title: Square (default)
212
+ color: primary
213
+ variant: solid
214
+ - id: shape_round
215
+ type: Button
216
+ layout:
217
+ flex: 0 0 auto
218
+ properties:
219
+ title: Round
220
+ shape: round
221
+ color: primary
222
+ variant: solid
223
+ - id: shape_circle
224
+ type: Button
225
+ layout:
226
+ flex: 0 0 auto
227
+ properties:
228
+ icon: AiOutlineSearch
229
+ shape: circle
230
+ color: primary
231
+ variant: solid
232
+ hideTitle: true
233
+ - id: shape_circle_outlined
234
+ type: Button
235
+ layout:
236
+ flex: 0 0 auto
237
+ properties:
238
+ icon: AiOutlinePlus
239
+ shape: circle
240
+ color: primary
241
+ variant: outlined
242
+ hideTitle: true
243
+ ```
244
+
245
+ ```yaml
246
+ - id: icon_download
247
+ type: Button
248
+ layout:
249
+ flex: 0 0 auto
250
+ properties:
251
+ title: Download
252
+ icon: AiOutlineDownload
253
+ color: primary
254
+ variant: solid
255
+ - id: icon_search
256
+ type: Button
257
+ layout:
258
+ flex: 0 0 auto
259
+ properties:
260
+ title: Search
261
+ icon: AiOutlineSearch
262
+ color: primary
263
+ variant: outlined
264
+ - id: icon_delete
265
+ type: Button
266
+ layout:
267
+ flex: 0 0 auto
268
+ properties:
269
+ title: Delete
270
+ icon: AiOutlineDelete
271
+ color: danger
272
+ variant: solid
273
+ - id: icon_only
274
+ type: Button
275
+ layout:
276
+ flex: 0 0 auto
277
+ properties:
278
+ icon: AiOutlineStar
279
+ color: gold
280
+ variant: filled
281
+ hideTitle: true
282
+ - id: icon_custom
283
+ type: Button
284
+ layout:
285
+ flex: 0 0 auto
286
+ properties:
287
+ title: Custom
288
+ icon:
289
+ name: AiOutlineThunderbolt
290
+ color: "#faad14"
291
+ color: primary
292
+ variant: outlined
293
+ ```
294
+
295
+ ```yaml
296
+ - id: ghost_bg
297
+ type: Box
298
+ class: bg-gradient-to-br from-teal-300 to-purple-400 p-4 rounded-lg
299
+ layout:
300
+ gap: 8
301
+ blocks:
302
+ - id: ghost_primary
303
+ type: Button
304
+ layout:
305
+ flex: 0 0 auto
306
+ properties:
307
+ title: Primary
308
+ ghost: true
309
+ color: primary
310
+ variant: solid
311
+ - id: ghost_default
312
+ type: Button
313
+ layout:
314
+ flex: 0 0 auto
315
+ properties:
316
+ title: Default
317
+ ghost: true
318
+ color: default
319
+ variant: solid
320
+ - id: ghost_danger
321
+ type: Button
322
+ layout:
323
+ flex: 0 0 auto
324
+ properties:
325
+ title: Danger
326
+ ghost: true
327
+ color: danger
328
+ variant: solid
329
+ ```
330
+
331
+ ```yaml
332
+ - id: block_primary
333
+ type: Button
334
+ properties:
335
+ title: Full Width Primary
336
+ block: true
337
+ color: primary
338
+ variant: solid
339
+ icon: AiOutlineArrowRight
340
+ - id: block_outlined
341
+ type: Button
342
+ properties:
343
+ title: Full Width Outlined
344
+ block: true
345
+ color: primary
346
+ variant: outlined
347
+ - id: block_danger
348
+ type: Button
349
+ properties:
350
+ title: Full Width Danger
351
+ block: true
352
+ color: danger
353
+ variant: solid
354
+ icon: AiOutlineWarning
355
+ ```
356
+
357
+ ```yaml
358
+ - id: dis_solid
359
+ type: Button
360
+ layout:
361
+ flex: 0 0 auto
362
+ properties:
363
+ title: Solid
364
+ disabled: true
365
+ color: primary
366
+ variant: solid
367
+ - id: dis_outlined
368
+ type: Button
369
+ layout:
370
+ flex: 0 0 auto
371
+ properties:
372
+ title: Outlined
373
+ disabled: true
374
+ color: primary
375
+ variant: outlined
376
+ - id: dis_text
377
+ type: Button
378
+ layout:
379
+ flex: 0 0 auto
380
+ properties:
381
+ title: Text
382
+ disabled: true
383
+ color: primary
384
+ variant: text
385
+ ```
386
+
387
+ ```yaml
388
+ - id: href_link
389
+ type: Button
390
+ layout:
391
+ flex: 0 0 auto
392
+ properties:
393
+ title: Visit Lowdefy
394
+ href: https://lowdefy.com
395
+ color: primary
396
+ variant: link
397
+ - id: href_solid
398
+ type: Button
399
+ layout:
400
+ flex: 0 0 auto
401
+ properties:
402
+ title: Go to Docs
403
+ href: https://docs.lowdefy.com
404
+ color: primary
405
+ variant: solid
406
+ icon: AiOutlineLink
407
+ - id: href_text
408
+ type: Button
409
+ layout:
410
+ flex: 0 0 auto
411
+ properties:
412
+ title: Learn more
413
+ href: https://lowdefy.com
414
+ color: default
415
+ variant: text
416
+ ```
417
+
418
+ ```yaml
419
+ - id: html_bold
420
+ type: Button
421
+ layout:
422
+ flex: 0 0 auto
423
+ properties:
424
+ title: <b>Bold</b> text
425
+ color: primary
426
+ variant: solid
427
+ - id: html_emoji
428
+ type: Button
429
+ layout:
430
+ flex: 0 0 auto
431
+ properties:
432
+ title: Launch &#x1F680;
433
+ color: purple
434
+ variant: solid
435
+ - id: html_styled
436
+ type: Button
437
+ layout:
438
+ flex: 0 0 auto
439
+ properties:
440
+ title: '<span style="letter-spacing: 2px">SUBMIT</span>'
441
+ color: green
442
+ variant: solid
443
+ ```
444
+
445
+ ```yaml
446
+ - id: shortcut_save
447
+ type: Button
448
+ layout:
449
+ flex: 0 0 auto
450
+ properties:
451
+ title: Save
452
+ icon: AiOutlineSave
453
+ color: primary
454
+ variant: solid
455
+ events:
456
+ onClick:
457
+ shortcut: mod+shift+s
458
+ try:
459
+ - id: save_msg
460
+ type: DisplayMessage
461
+ params:
462
+ content: Saved!
463
+ status: success
464
+ - id: shortcut_new
465
+ type: Button
466
+ layout:
467
+ flex: 0 0 auto
468
+ properties:
469
+ title: New Item
470
+ icon: AiOutlinePlus
471
+ color: primary
472
+ variant: outlined
473
+ events:
474
+ onClick:
475
+ shortcut: alt+n
476
+ try:
477
+ - id: new_msg
478
+ type: DisplayMessage
479
+ params:
480
+ content: Creating new item...
481
+ status: info
482
+ - id: shortcut_delete
483
+ type: Button
484
+ layout:
485
+ flex: 0 0 auto
486
+ properties:
487
+ title: Delete
488
+ icon: AiOutlineDelete
489
+ color: danger
490
+ variant: solid
491
+ events:
492
+ onClick:
493
+ shortcut: mod+shift+d
494
+ try:
495
+ - id: delete_msg
496
+ type: DisplayMessage
497
+ params:
498
+ content: Item deleted
499
+ status: warning
500
+ ```
501
+
502
+ ```yaml
503
+ - id: css_shadow
504
+ type: Button
505
+ layout:
506
+ flex: 0 0 auto
507
+ class: shadow-lg
508
+ properties:
509
+ title: Shadow
510
+ color: primary
511
+ variant: solid
512
+ - id: css_rounded
513
+ type: Button
514
+ layout:
515
+ flex: 0 0 auto
516
+ class: rounded-full
517
+ properties:
518
+ title: Rounded Full
519
+ color: purple
520
+ variant: solid
521
+ - id: css_gradient_bg
522
+ type: Box
523
+ class: bg-gradient-to-r from-slate-900 to-slate-700 p-4 rounded-lg
524
+ layout:
525
+ gap: 8
526
+ blocks:
527
+ - id: css_on_dark_solid
528
+ type: Button
529
+ layout:
530
+ flex: 0 0 auto
531
+ properties:
532
+ title: On Dark
533
+ color: primary
534
+ variant: solid
535
+ - id: css_on_dark_ghost
536
+ type: Button
537
+ layout:
538
+ flex: 0 0 auto
539
+ properties:
540
+ title: Ghost
541
+ ghost: true
542
+ color: primary
543
+ variant: outlined
544
+ ```
545
+
546
+ ```yaml
547
+ - id: theme_radius
548
+ type: Button
549
+ layout:
550
+ flex: 0 0 auto
551
+ properties:
552
+ title: Large Radius
553
+ color: primary
554
+ variant: solid
555
+ theme:
556
+ borderRadius: 20
557
+ - id: theme_font
558
+ type: Button
559
+ layout:
560
+ flex: 0 0 auto
561
+ properties:
562
+ title: Large Font
563
+ color: primary
564
+ variant: solid
565
+ theme:
566
+ fontSize: 18
567
+ - id: theme_pill
568
+ type: Button
569
+ layout:
570
+ flex: 0 0 auto
571
+ properties:
572
+ title: Pill Button
573
+ color: green
574
+ variant: solid
575
+ size: large
576
+ theme:
577
+ borderRadius: 40
578
+ controlHeight: 48
579
+ ```
580
+
581
+ ```yaml
582
+ - id: contact_card
583
+ type: Card
584
+ properties:
585
+ title: Contact Us
586
+ size: small
587
+ blocks:
588
+ - id: contact_name
589
+ type: TextInput
590
+ required: true
591
+ properties:
592
+ label:
593
+ title: Name
594
+ placeholder: Your full name
595
+ - id: contact_email
596
+ type: TextInput
597
+ required: true
598
+ properties:
599
+ label:
600
+ title: Email
601
+ placeholder: you@example.com
602
+ - id: contact_message
603
+ type: TextArea
604
+ required: true
605
+ properties:
606
+ label:
607
+ title: Message
608
+ placeholder: How can we help?
609
+ rows: 4
610
+ - id: contact_actions
611
+ type: Box
612
+ layout:
613
+ gap: 8
614
+ justify: flex-end
615
+ blocks:
616
+ - id: contact_cancel
617
+ type: Button
618
+ layout:
619
+ flex: 0 0 auto
620
+ properties:
621
+ title: Cancel
622
+ color: default
623
+ variant: outlined
624
+ events:
625
+ onClick:
626
+ - id: cancel_reset
627
+ type: ResetValidation
628
+ - id: cancel_msg
629
+ type: DisplayMessage
630
+ params:
631
+ content: Form cleared
632
+ status: info
633
+ - id: contact_submit
634
+ type: Button
635
+ layout:
636
+ flex: 0 0 auto
637
+ properties:
638
+ title: Send Message
639
+ color: primary
640
+ variant: solid
641
+ icon: AiOutlineSend
642
+ events:
643
+ onClick:
644
+ - id: submit_validate
645
+ type: Validate
646
+ params:
647
+ - contact_name
648
+ - contact_email
649
+ - contact_message
650
+ - id: submit_msg
651
+ type: DisplayMessage
652
+ params:
653
+ content: Message sent successfully!
654
+ status: success
655
+ ```
656
+
657
+ ```yaml
658
+ - id: confirm_card
659
+ type: Card
660
+ blocks:
661
+ - id: confirm_result
662
+ type: Result
663
+ properties:
664
+ status: warning
665
+ title: Delete Project?
666
+ subTitle: This action cannot be undone. All files, settings, and deployment
667
+ history will be permanently removed.
668
+ - id: confirm_actions
669
+ type: Box
670
+ layout:
671
+ gap: 8
672
+ justify: center
673
+ blocks:
674
+ - id: confirm_keep
675
+ type: Button
676
+ layout:
677
+ flex: 0 0 auto
678
+ properties:
679
+ title: Keep Project
680
+ color: default
681
+ variant: outlined
682
+ events:
683
+ onClick:
684
+ - id: keep_msg
685
+ type: DisplayMessage
686
+ params:
687
+ content: Project kept. No changes made.
688
+ status: info
689
+ - id: confirm_delete
690
+ type: Button
691
+ layout:
692
+ flex: 0 0 auto
693
+ properties:
694
+ title: Delete Permanently
695
+ color: danger
696
+ variant: solid
697
+ icon: AiOutlineDelete
698
+ events:
699
+ onClick:
700
+ - id: delete_msg
701
+ type: DisplayMessage
702
+ params:
703
+ content: Project deleted.
704
+ status: success
705
+ - id: delete_nav
706
+ type: Link
707
+ params:
708
+ pageId: introduction
709
+ ```
710
+
711
+ | Property | Type | Default | Description |
712
+ | --- | --- | --- | --- |
713
+ | `block` | boolean | `false` | Fit the button's span to its parent container span. |
714
+ | `color` | string | - | Button color. Preset values: default, primary, danger, blue, purple, cyan, green, magenta, pink, red, orange, yellow, volcano, geekblue, lime, gold. Also accepts custom hex color strings. |
715
+ | `danger` | boolean | `false` | Set button style to danger. |
716
+ | `disabled` | boolean | `false` | Disable the button if true. |
717
+ | `ghost` | boolean | `false` | Make the button's background transparent when true. |
718
+ | `hideTitle` | boolean | `false` | Hide the button's title. |
719
+ | `href` | string | - | The URL to redirect to when the button is clicked. Useful when used with a type link button. |
720
+ | `icon` | string \| object | - | Name of an React-Icon (See all icons) or properties of an Icon block to use icon in button. |
721
+ | `shape` | string | `"square"` | Shape of the button. Enum: `circle`, `round`, `square`. |
722
+ | `size` | string | `"default"` | Size of the button. Enum: `small`, `default`, `large`. |
723
+ | `title` | string | - | Title text on the button - supports html. |
724
+ | `type` | string | `"primary"` | Deprecated - use color and variant instead. The button type. Enum: `primary`, `default`, `dashed`, `link`, `text`. |
725
+ | `variant` | string | - | Button visual variant. When set, takes precedence over type. Enum: `solid`, `outlined`, `dashed`, `filled`, `text`, `link`. |
726
+ | `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design button tokens](https://ant.design/components/button#design-token). |
727
+ | `theme.borderRadius` | number | `6` | Border radius of the button. |
728
+ | `theme.borderRadiusLG` | number | `8` | Border radius for large buttons. |
729
+ | `theme.borderRadiusSM` | number | `4` | Border radius for small buttons. |
730
+ | `theme.controlHeight` | number | `32` | Height of the button. |
731
+ | `theme.controlHeightLG` | number | `40` | Height for large buttons. |
732
+ | `theme.controlHeightSM` | number | `24` | Height for small buttons. |
733
+ | `theme.fontSize` | number | `14` | Font size. |
734
+ | `theme.fontSizeLG` | number | `16` | Font size for large buttons. |
735
+ | `theme.fontSizeSM` | number | `14` | Font size for small buttons. |
736
+ | `theme.lineWidth` | number | `1` | Border width. |
737
+ | `theme.paddingInline` | number | `15` | Horizontal padding. |
738
+ | `theme.paddingInlineLG` | number | `15` | Horizontal padding for large buttons. |
739
+ | `theme.paddingInlineSM` | number | `7` | Horizontal padding for small buttons. |
740
+ | `theme.paddingBlock` | number | `0` | Vertical padding. |
741
+ | `theme.colorPrimary` | string | - | Primary color override. |
742
+ | `theme.colorPrimaryHover` | string | - | Primary hover color. |
743
+ | `theme.colorPrimaryActive` | string | - | Primary active color. |
744
+ | `theme.colorBgContainer` | string | - | Background color for default buttons. |
745
+ | `theme.colorText` | string | - | Text color for default buttons. |
746
+ | `theme.colorBorder` | string | - | Border color for outlined and dashed buttons. |
747
+
748
+ | Event | Event Data | Description |
749
+ | --- | --- | --- |
750
+ | `onClick` | \- | Trigger action when button is clicked. Renders a shortcut badge when a shortcut is configured. |
751
+
752
+ | Key | Target |
753
+ | --- | --- |
754
+ | `/block` | Outer block wrapper (always available). |
755
+ | `/element` | The Button element. |
756
+ | `/icon` | The icon in the Button. |
757
+
758
+ No slots defined.