@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,639 @@
1
+ # TextInput
2
+
3
+ Single-line text input with sizes, prefix/suffix icons, character count, and clear button.
4
+
5
+ ```yaml
6
+ - id: basic_default
7
+ type: TextInput
8
+ properties:
9
+ title: Default TextInput
10
+ placeholder: Enter text here
11
+ - id: basic_with_value
12
+ type: TextInput
13
+ properties:
14
+ title: With Default Value
15
+ events:
16
+ onMount:
17
+ - id: set_default
18
+ type: SetState
19
+ params:
20
+ basic_with_value: Hello World
21
+ - id: basic_placeholder_only
22
+ type: TextInput
23
+ properties:
24
+ placeholder: No label, just a placeholder
25
+ label:
26
+ disabled: true
27
+ ```
28
+
29
+ ```yaml
30
+ - id: size_small
31
+ type: TextInput
32
+ properties:
33
+ title: Small
34
+ size: small
35
+ placeholder: Small input
36
+ - id: size_middle
37
+ type: TextInput
38
+ properties:
39
+ title: Middle (Default)
40
+ size: middle
41
+ placeholder: Middle input
42
+ - id: size_large
43
+ type: TextInput
44
+ properties:
45
+ title: Large
46
+ size: large
47
+ placeholder: Large input
48
+ ```
49
+
50
+ ```yaml
51
+ - id: variant_outlined
52
+ type: TextInput
53
+ properties:
54
+ title: Outlined (Default)
55
+ placeholder: Outlined variant
56
+ - id: variant_filled
57
+ type: TextInput
58
+ properties:
59
+ title: Filled
60
+ variant: filled
61
+ placeholder: Filled variant
62
+ - id: variant_borderless
63
+ type: TextInput
64
+ properties:
65
+ title: Borderless
66
+ variant: borderless
67
+ placeholder: Borderless variant
68
+ ```
69
+
70
+ ```yaml
71
+ - id: type_text
72
+ type: TextInput
73
+ properties:
74
+ title: Text (Default)
75
+ type: text
76
+ placeholder: Regular text
77
+ - id: type_email
78
+ type: TextInput
79
+ properties:
80
+ title: Email
81
+ type: email
82
+ prefixIcon: AiOutlineMail
83
+ placeholder: user@example.com
84
+ - id: type_password
85
+ type: TextInput
86
+ properties:
87
+ title: Password
88
+ type: password
89
+ prefixIcon: AiOutlineLock
90
+ placeholder: Enter password
91
+ - id: type_tel
92
+ type: TextInput
93
+ properties:
94
+ title: Telephone
95
+ type: tel
96
+ prefixIcon: AiOutlinePhone
97
+ placeholder: +1 (555) 123-4567
98
+ - id: type_url
99
+ type: TextInput
100
+ properties:
101
+ title: URL
102
+ type: url
103
+ prefixIcon: AiOutlineGlobal
104
+ placeholder: https://example.com
105
+ ```
106
+
107
+ ```yaml
108
+ - id: adorn_prefix_text
109
+ type: TextInput
110
+ properties:
111
+ title: Prefix Text
112
+ prefix: https://
113
+ placeholder: mysite.com
114
+ - id: adorn_suffix_text
115
+ type: TextInput
116
+ properties:
117
+ title: Suffix Text
118
+ suffix: "@gmail.com"
119
+ placeholder: username
120
+ - id: adorn_both
121
+ type: TextInput
122
+ properties:
123
+ title: Prefix & Suffix
124
+ prefix: https://
125
+ suffix: .com
126
+ placeholder: example
127
+ - id: adorn_prefix_icon
128
+ type: TextInput
129
+ properties:
130
+ title: Prefix Icon
131
+ prefixIcon: AiOutlineUser
132
+ placeholder: Enter username
133
+ - id: adorn_suffix_icon
134
+ type: TextInput
135
+ properties:
136
+ title: Suffix Icon
137
+ suffixIcon: AiOutlineInfoCircle
138
+ placeholder: Enter value
139
+ ```
140
+
141
+ ```yaml
142
+ - id: icon_custom_color
143
+ type: TextInput
144
+ properties:
145
+ title: Custom Color Icon
146
+ prefixIcon:
147
+ name: AiOutlineUser
148
+ color: "#1677ff"
149
+ placeholder: Blue user icon
150
+ - id: icon_both_custom
151
+ type: TextInput
152
+ properties:
153
+ title: Both Icons
154
+ prefixIcon: AiOutlineLink
155
+ suffixIcon: AiOutlineArrowRight
156
+ placeholder: Enter link
157
+ - id: icon_mixed
158
+ type: TextInput
159
+ properties:
160
+ title: Icon Prefix + Text Suffix
161
+ prefixIcon: AiOutlineGlobal
162
+ suffix: .com
163
+ placeholder: domain
164
+ ```
165
+
166
+ ```yaml
167
+ - id: clear_basic
168
+ type: TextInput
169
+ properties:
170
+ title: Allow Clear
171
+ allowClear: true
172
+ events:
173
+ onMount:
174
+ - id: set_default
175
+ type: SetState
176
+ params:
177
+ clear_basic: Clearable text
178
+ - id: clear_with_icon
179
+ type: TextInput
180
+ properties:
181
+ title: Allow Clear + Prefix Icon
182
+ allowClear: true
183
+ prefixIcon: AiOutlineUser
184
+ events:
185
+ onMount:
186
+ - id: set_default
187
+ type: SetState
188
+ params:
189
+ clear_with_icon: Clear with icon
190
+ - id: clear_disabled
191
+ type: TextInput
192
+ properties:
193
+ title: Allow Clear (Not Set)
194
+ allowClear: false
195
+ placeholder: Cannot clear
196
+ ```
197
+
198
+ ```yaml
199
+ - id: count_with_max
200
+ type: TextInput
201
+ properties:
202
+ title: Max 50 Characters
203
+ showCount: true
204
+ maxLength: 50
205
+ placeholder: Up to 50 characters
206
+ - id: count_no_max
207
+ type: TextInput
208
+ properties:
209
+ title: Count Without Limit
210
+ showCount: true
211
+ placeholder: Unlimited characters
212
+ - id: max_no_count
213
+ type: TextInput
214
+ properties:
215
+ title: Max Length Without Count
216
+ maxLength: 20
217
+ placeholder: Max 20 (no counter shown)
218
+ ```
219
+
220
+ ```yaml
221
+ - id: replace_numbers_only
222
+ type: TextInput
223
+ properties:
224
+ title: Numbers Only
225
+ placeholder: Only digits allowed
226
+ replaceInput:
227
+ pattern: "[^0-9]"
228
+ flags: g
229
+ replacement: ""
230
+ - id: replace_alpha_only
231
+ type: TextInput
232
+ properties:
233
+ title: Letters Only
234
+ placeholder: Only letters allowed
235
+ replaceInput:
236
+ pattern: "[^a-zA-Z]"
237
+ flags: g
238
+ replacement: ""
239
+ - id: replace_no_spaces
240
+ type: TextInput
241
+ properties:
242
+ title: No Spaces
243
+ placeholder: Spaces removed automatically
244
+ replaceInput:
245
+ pattern: \s
246
+ flags: g
247
+ replacement: ""
248
+ ```
249
+
250
+ ```yaml
251
+ - id: label_title_html
252
+ type: TextInput
253
+ properties:
254
+ title: <b>Bold</b> Title
255
+ placeholder: HTML in title
256
+ - id: label_extra
257
+ type: TextInput
258
+ properties:
259
+ title: With Extra Text
260
+ placeholder: Enter value
261
+ label:
262
+ extra: Helper text provides guidance.
263
+ - id: label_inline
264
+ type: TextInput
265
+ properties:
266
+ title: Inline Label
267
+ placeholder: Label inline, aligned right
268
+ label:
269
+ inline: true
270
+ align: right
271
+ span: 8
272
+ - id: label_no_colon
273
+ type: TextInput
274
+ properties:
275
+ title: Without Colon
276
+ placeholder: No colon after label
277
+ label:
278
+ colon: false
279
+ - id: label_hidden
280
+ type: TextInput
281
+ properties:
282
+ title: Label Hidden
283
+ placeholder: Label hidden (label.disabled true)
284
+ label:
285
+ disabled: true
286
+ ```
287
+
288
+ ```yaml
289
+ - id: disabled_empty
290
+ type: TextInput
291
+ properties:
292
+ title: Disabled (Empty)
293
+ disabled: true
294
+ placeholder: Cannot edit
295
+ - id: disabled_with_value
296
+ type: TextInput
297
+ properties:
298
+ title: Disabled (With Value)
299
+ disabled: true
300
+ events:
301
+ onMount:
302
+ - id: set_default
303
+ type: SetState
304
+ params:
305
+ disabled_with_value: Existing value
306
+ - id: disabled_with_prefix
307
+ type: TextInput
308
+ properties:
309
+ title: Disabled (With Prefix)
310
+ disabled: true
311
+ prefixIcon: AiOutlineUser
312
+ events:
313
+ onMount:
314
+ - id: set_default
315
+ type: SetState
316
+ params:
317
+ disabled_with_prefix: john_doe
318
+ ```
319
+
320
+ ```yaml
321
+ - id: css_shadow
322
+ type: TextInput
323
+ class: shadow-md
324
+ properties:
325
+ title: Shadow
326
+ placeholder: Using Tailwind shadow class
327
+ - id: css_rounded
328
+ type: TextInput
329
+ class: rounded-lg
330
+ properties:
331
+ title: Rounded
332
+ placeholder: Using Tailwind rounded class
333
+ - id: css_custom_bg
334
+ type: TextInput
335
+ style:
336
+ .element:
337
+ borderColor: "#adc6ff"
338
+ properties:
339
+ title: Custom Background
340
+ placeholder: Light blue background
341
+ - id: css_full_custom
342
+ type: TextInput
343
+ style:
344
+ .element:
345
+ borderColor: "#ffa940"
346
+ borderRadius: 12
347
+ color: "#d46b08"
348
+ properties:
349
+ title: Fully Customized
350
+ placeholder: Orange theme via style
351
+ prefixIcon:
352
+ name: AiOutlineStar
353
+ color: "#fa8c16"
354
+ ```
355
+
356
+ ```yaml
357
+ - id: theme_pill
358
+ type: TextInput
359
+ properties:
360
+ title: Pill Shape
361
+ placeholder: borderRadius 40
362
+ theme:
363
+ borderRadius: 40
364
+ - id: theme_green
365
+ type: TextInput
366
+ properties:
367
+ title: Green Theme
368
+ placeholder: Custom green colors
369
+ prefixIcon: AiOutlineCheck
370
+ theme:
371
+ colorPrimary: "#52c41a"
372
+ colorBorder: "#b7eb8f"
373
+ borderRadius: 8
374
+ hoverBorderColor: "#73d13d"
375
+ activeBorderColor: "#389e0d"
376
+ activeShadow: 0 0 0 2px rgba(82, 196, 26, 0.15)
377
+ - id: theme_purple
378
+ type: TextInput
379
+ properties:
380
+ title: Purple Theme
381
+ placeholder: Custom purple colors
382
+ prefixIcon: AiOutlineStar
383
+ theme:
384
+ colorPrimary: "#722ed1"
385
+ colorBorder: "#d3adf7"
386
+ borderRadius: 12
387
+ hoverBorderColor: "#b37feb"
388
+ activeBorderColor: "#531dab"
389
+ activeShadow: 0 0 0 2px rgba(114, 46, 209, 0.15)
390
+ - id: theme_filled_warm
391
+ type: TextInput
392
+ properties:
393
+ title: Warm Filled
394
+ variant: filled
395
+ placeholder: Custom filled variant
396
+ theme:
397
+ colorFillTertiary: "#fff7e6"
398
+ hoverBorderColor: "#fa8c16"
399
+ borderRadius: 8
400
+ ```
401
+
402
+ ```yaml
403
+ - id: reg_name
404
+ type: TextInput
405
+ required: true
406
+ properties:
407
+ title: Full Name
408
+ prefixIcon: AiOutlineUser
409
+ placeholder: John Doe
410
+ label:
411
+ colon: false
412
+ - id: reg_email
413
+ type: TextInput
414
+ required: true
415
+ properties:
416
+ title: Email Address
417
+ type: email
418
+ prefixIcon: AiOutlineMail
419
+ placeholder: john@example.com
420
+ label:
421
+ colon: false
422
+ extra: We will never share your email.
423
+ - id: reg_password
424
+ type: TextInput
425
+ required: true
426
+ properties:
427
+ title: Password
428
+ type: password
429
+ prefixIcon: AiOutlineLock
430
+ placeholder: At least 8 characters
431
+ showCount: true
432
+ maxLength: 64
433
+ label:
434
+ colon: false
435
+ - id: reg_username
436
+ type: TextInput
437
+ required: true
438
+ properties:
439
+ title: Username
440
+ prefix: "@"
441
+ placeholder: username
442
+ allowClear: true
443
+ replaceInput:
444
+ pattern: "[^a-z0-9_]"
445
+ flags: g
446
+ replacement: ""
447
+ label:
448
+ colon: false
449
+ extra: Lowercase letters, numbers, and underscores only.
450
+ - id: reg_actions
451
+ type: Box
452
+ layout:
453
+ gap: 8
454
+ justify: flex-end
455
+ blocks:
456
+ - id: reg_cancel
457
+ type: Button
458
+ layout:
459
+ flex: 0 0 auto
460
+ properties:
461
+ title: Cancel
462
+ color: default
463
+ variant: outlined
464
+ events:
465
+ onClick:
466
+ - id: cancel_reset
467
+ type: ResetValidation
468
+ - id: cancel_msg
469
+ type: DisplayMessage
470
+ params:
471
+ content: Form cleared
472
+ status: info
473
+ - id: reg_submit
474
+ type: Button
475
+ layout:
476
+ flex: 0 0 auto
477
+ properties:
478
+ title: Create Account
479
+ color: primary
480
+ variant: solid
481
+ icon: AiOutlineArrowRight
482
+ events:
483
+ onClick:
484
+ - id: submit_validate
485
+ type: Validate
486
+ params:
487
+ - reg_name
488
+ - reg_email
489
+ - reg_password
490
+ - reg_username
491
+ - id: submit_msg
492
+ type: DisplayMessage
493
+ params:
494
+ content: Account created successfully!
495
+ status: success
496
+ ```
497
+
498
+ ```yaml
499
+ - id: search_bar
500
+ type: TextInput
501
+ properties:
502
+ prefixIcon: AiOutlineSearch
503
+ allowClear: true
504
+ placeholder: Search products, categories, or brands...
505
+ size: large
506
+ label:
507
+ disabled: true
508
+ theme:
509
+ borderRadius: 20
510
+ events:
511
+ onPressEnter:
512
+ - id: search_msg
513
+ type: DisplayMessage
514
+ params:
515
+ content:
516
+ _string.concat:
517
+ - "Searching for: "
518
+ - _state: search_bar
519
+ status: info
520
+ - id: search_coupon
521
+ type: TextInput
522
+ properties:
523
+ title: Coupon Code
524
+ placeholder: Enter code
525
+ showCount: true
526
+ maxLength: 16
527
+ size: small
528
+ replaceInput:
529
+ pattern: "[^A-Z0-9]"
530
+ flags: g
531
+ replacement: ""
532
+ label:
533
+ extra: Letters and numbers only.
534
+ - id: search_apply
535
+ type: Button
536
+ layout:
537
+ flex: 0 0 auto
538
+ properties:
539
+ title: Apply Coupon
540
+ color: primary
541
+ variant: solid
542
+ size: small
543
+ events:
544
+ onClick:
545
+ - id: apply_msg
546
+ type: DisplayMessage
547
+ params:
548
+ content: Coupon applied!
549
+ status: success
550
+ ```
551
+
552
+ | Property | Type | Default | Description |
553
+ | --- | --- | --- | --- |
554
+ | `allowClear` | boolean | `false` | Allow the user to clear their input. |
555
+ | `type` | string | `"text"` | The type of input, (see MDN). Enum: `text`, `number`, `password`, `tel`, `email`, `url`. |
556
+ | `autoFocus` | boolean | `false` | Autofocus to the block on page load. |
557
+ | `bordered` | boolean | `true` | Whether or not the text input has a border style. |
558
+ | `disabled` | boolean | `false` | Disable the block if true. |
559
+ | `maxLength` | integer | - | The max number of input characters. |
560
+ | `placeholder` | string | - | Placeholder text inside the block before user types input. |
561
+ | `prefix` | string | - | Prefix text for the block, priority over $prefix_con. |
562
+ | `prefixIcon` | string \| object | - | Name of an React-Icon (See all icons) or properties of an Icon block to customize icon to prefix the text input. |
563
+ | `label` | object | - | Label properties. |
564
+ | `label.align` | string | `"left"` | Align label left or right when inline. Enum: `left`, `right`. |
565
+ | `label.colon` | boolean | `true` | Append label with colon. |
566
+ | `label.extra` | string | - | Extra text to display beneath the content - supports html. |
567
+ | `label.title` | string | - | Label title - supports html. |
568
+ | `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. |
569
+ | `label.tooltip.title` | string | - | Tooltip text shown on hover - supports html. |
570
+ | `label.tooltip.icon` | string | `"AiOutlineQuestionCircle"` | Name of the icon to show beside the label. |
571
+ | `label.tooltip.color` | string | - | Color of the tooltip icon. |
572
+ | `label.span` | number | - | Label inline span. |
573
+ | `label.disabled` | boolean | `false` | Hide input label. |
574
+ | `label.hasFeedback` | boolean | `true` | Display feedback extra from validation, this does not disable validation. |
575
+ | `label.inline` | boolean | `false` | Render input and label inline. |
576
+ | `replaceInput` | object | - | Regex used to sanitize input. |
577
+ | `replaceInput.pattern` | string | - | The regular expression pattern to use to sanitize input. |
578
+ | `replaceInput.flags` | string | - | The regex flags to use. The default value is 'gm'. |
579
+ | `replaceInput.replacement` | string | - | The string used to replace the input that matches the pattern. The default value is ''. |
580
+ | `size` | string | `"middle"` | Size of the block. Enum: `small`, `middle`, `large`. |
581
+ | `showCount` | boolean | `false` | Show text character count |
582
+ | `suffix` | string | - | Suffix text for the block, priority over suffixIcon. |
583
+ | `suffixIcon` | string \| object | - | Name of an React-Icon (See all icons) or properties of an Icon block to customize icon to suffix the text input. |
584
+ | `title` | string | - | Title to describe the input component, if no title is specified the block id is displayed - supports html. |
585
+ | `variant` | string | - | Input visual variant. When set, takes precedence over bordered. Enum: `outlined`, `filled`, `borderless`. |
586
+ | `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design input tokens](https://ant.design/components/input#design-token). |
587
+ | `theme.activeBorderColor` | string | - | Border color when the input is focused. |
588
+ | `theme.activeShadow` | string | - | Box shadow when the input is focused. |
589
+ | `theme.addonBg` | string | `"rgba(0, 0, 0, 0.02)"` | Background color of addon elements. |
590
+ | `theme.borderRadius` | number | `6` | Border radius of the input. |
591
+ | `theme.borderRadiusLG` | number | `8` | Border radius for large inputs. |
592
+ | `theme.borderRadiusSM` | number | `4` | Border radius for small inputs. |
593
+ | `theme.colorBgContainer` | string | - | Background color of the input. |
594
+ | `theme.colorBorder` | string | - | Border color of the input. |
595
+ | `theme.colorError` | string | - | Color used for error status. |
596
+ | `theme.colorFillTertiary` | string | - | Background fill color for the filled variant. |
597
+ | `theme.colorPrimary` | string | - | Primary color override. |
598
+ | `theme.colorText` | string | - | Text color of the input value. |
599
+ | `theme.colorTextDisabled` | string | - | Text color when input is disabled. |
600
+ | `theme.colorTextPlaceholder` | string | - | Color of the placeholder text. |
601
+ | `theme.colorWarning` | string | - | Color used for warning status. |
602
+ | `theme.controlHeight` | number | `32` | Height of the input. |
603
+ | `theme.controlHeightLG` | number | `40` | Height for large inputs. |
604
+ | `theme.controlHeightSM` | number | `24` | Height for small inputs. |
605
+ | `theme.errorActiveShadow` | string | `"0 0 0 2px rgba(255, 38, 5, 0.06)"` | Box shadow when the input has error status and is focused. |
606
+ | `theme.fontSize` | number | `14` | Font size of the input. |
607
+ | `theme.fontSizeLG` | number | `16` | Font size for large inputs. |
608
+ | `theme.fontSizeSM` | number | `14` | Font size for small inputs. |
609
+ | `theme.hoverBorderColor` | string | - | Border color when the input is hovered. |
610
+ | `theme.hoverBg` | string | - | Background color when the input is hovered. |
611
+ | `theme.activeBg` | string | - | Background color when the input is focused. |
612
+ | `theme.lineWidth` | number | `1` | Border width. |
613
+ | `theme.paddingBlock` | number | `4` | Vertical padding. |
614
+ | `theme.paddingBlockLG` | number | `7` | Vertical padding for large inputs. |
615
+ | `theme.paddingBlockSM` | number | `0` | Vertical padding for small inputs. |
616
+ | `theme.paddingInline` | number | `11` | Horizontal padding. |
617
+ | `theme.paddingInlineLG` | number | `11` | Horizontal padding for large inputs. |
618
+ | `theme.paddingInlineSM` | number | `7` | Horizontal padding for small inputs. |
619
+ | `theme.warningActiveShadow` | string | `"0 0 0 2px rgba(255, 215, 5, 0.1)"` | Box shadow when the input has warning status and is focused. |
620
+
621
+ | Event | Event Data | Description |
622
+ | --- | --- | --- |
623
+ | `onBlur` | \- | Trigger action event occurs when text input loses focus. |
624
+ | `onChange` | `{ value }` | Trigger action when text input is changed. |
625
+ | `onFocus` | \- | Trigger action when text input gets focus. |
626
+ | `onPressEnter` | \- | Trigger action when enter is pressed while text input is focused. |
627
+ | `onTooltipClick` | \- | Trigger actions when the tooltip icon is clicked. |
628
+
629
+ | Key | Target |
630
+ | --- | --- |
631
+ | `/block` | Outer block wrapper (always available). |
632
+ | `/element` | The TextInput element. |
633
+ | `/label` | The TextInput label. |
634
+ | `/extra` | The TextInput extra content. |
635
+ | `/feedback` | The TextInput validation feedback. |
636
+ | `/prefixIcon` | The prefix icon in the TextInput. |
637
+ | `/suffixIcon` | The suffix icon in the TextInput. |
638
+
639
+ No slots defined.