@lowdefy/blocks-antd 5.6.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/dist/TagPillRow.js +88 -0
  2. package/dist/blocks/Affix/gallery.yaml +399 -0
  3. package/dist/blocks/Affix/tests/Affix.e2e.yaml +72 -0
  4. package/dist/blocks/Affix/tests.yaml +29 -0
  5. package/dist/blocks/Alert/gallery.yaml +701 -0
  6. package/dist/blocks/Alert/tests/Alert.e2e.yaml +161 -0
  7. package/dist/blocks/Alert/tests.yaml +261 -0
  8. package/dist/blocks/AutoComplete/gallery.yaml +713 -0
  9. package/dist/blocks/AutoComplete/tests/AutoComplete.e2e.yaml +330 -0
  10. package/dist/blocks/AutoComplete/tests.yaml +178 -0
  11. package/dist/blocks/Avatar/gallery.yaml +1037 -0
  12. package/dist/blocks/Avatar/tests/Avatar.e2e.yaml +125 -0
  13. package/dist/blocks/Avatar/tests.yaml +76 -0
  14. package/dist/blocks/Badge/gallery.yaml +1090 -0
  15. package/dist/blocks/Badge/tests/Badge.e2e.yaml +195 -0
  16. package/dist/blocks/Badge/tests.yaml +91 -0
  17. package/dist/blocks/Breadcrumb/gallery.yaml +484 -0
  18. package/dist/blocks/Breadcrumb/tests/Breadcrumb.e2e.yaml +165 -0
  19. package/dist/blocks/Breadcrumb/tests.yaml +106 -0
  20. package/dist/blocks/Button/Button.js +11 -2
  21. package/dist/blocks/Button/gallery.yaml +718 -0
  22. package/dist/blocks/Button/meta.js +4 -0
  23. package/dist/blocks/Button/tests/Button.e2e.yaml +246 -0
  24. package/dist/blocks/Button/tests.yaml +109 -0
  25. package/dist/blocks/ButtonSelector/gallery.yaml +891 -0
  26. package/dist/blocks/ButtonSelector/tests/ButtonSelector.e2e.yaml +188 -0
  27. package/dist/blocks/ButtonSelector/tests.yaml +167 -0
  28. package/dist/blocks/Calendar/gallery.yaml +128 -0
  29. package/dist/blocks/Calendar/tests/Calendar.e2e.yaml +136 -0
  30. package/dist/blocks/Calendar/tests.yaml +50 -0
  31. package/dist/blocks/Card/gallery.yaml +1035 -0
  32. package/dist/blocks/Card/tests/Card.e2e.yaml +209 -0
  33. package/dist/blocks/Card/tests.yaml +75 -0
  34. package/dist/blocks/Carousel/gallery.yaml +1971 -0
  35. package/dist/blocks/Carousel/tests/Carousel.e2e.yaml +211 -0
  36. package/dist/blocks/Carousel/tests.yaml +117 -0
  37. package/dist/blocks/CheckboxSelector/gallery.yaml +781 -0
  38. package/dist/blocks/CheckboxSelector/tests/CheckboxSelector.e2e.yaml +272 -0
  39. package/dist/blocks/CheckboxSelector/tests.yaml +325 -0
  40. package/dist/blocks/CheckboxSwitch/gallery.yaml +457 -0
  41. package/dist/blocks/CheckboxSwitch/tests/CheckboxSwitch.e2e.yaml +126 -0
  42. package/dist/blocks/CheckboxSwitch/tests.yaml +96 -0
  43. package/dist/blocks/Collapse/gallery.yaml +1079 -0
  44. package/dist/blocks/Collapse/tests/Collapse.e2e.yaml +206 -0
  45. package/dist/blocks/Collapse/tests.yaml +265 -0
  46. package/dist/blocks/ColorSelector/gallery.yaml +807 -0
  47. package/dist/blocks/ColorSelector/tests/ColorSelector.e2e.yaml +77 -0
  48. package/dist/blocks/ColorSelector/tests.yaml +84 -0
  49. package/dist/blocks/ConfigProvider/gallery.yaml +1003 -0
  50. package/dist/blocks/ConfigProvider/tests.yaml +62 -0
  51. package/dist/blocks/ConfirmModal/gallery.yaml +1043 -0
  52. package/dist/blocks/ConfirmModal/tests/ConfirmModal.e2e.yaml +410 -0
  53. package/dist/blocks/ConfirmModal/tests.yaml +95 -0
  54. package/dist/blocks/Content/gallery.yaml +528 -0
  55. package/dist/blocks/Content/tests/Content.e2e.yaml +71 -0
  56. package/dist/blocks/Content/tests.yaml +42 -0
  57. package/dist/blocks/ControlledList/ControlledList.js +1 -1
  58. package/dist/blocks/ControlledList/gallery.yaml +481 -0
  59. package/dist/blocks/ControlledList/{style.module.css → style.css} +3 -3
  60. package/dist/blocks/ControlledList/tests/ControlledList.e2e.yaml +161 -0
  61. package/dist/blocks/ControlledList/tests.yaml +57 -0
  62. package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -0
  63. package/dist/blocks/DateRangeSelector/e2e.js +28 -2
  64. package/dist/blocks/DateRangeSelector/gallery.yaml +858 -0
  65. package/dist/blocks/DateRangeSelector/meta.js +2 -0
  66. package/dist/blocks/DateRangeSelector/tests/DateRangeSelector.e2e.yaml +204 -0
  67. package/dist/blocks/DateRangeSelector/tests.yaml +129 -0
  68. package/dist/blocks/DateSelector/DateSelector.js +6 -0
  69. package/dist/blocks/DateSelector/e2e.js +28 -2
  70. package/dist/blocks/DateSelector/gallery.yaml +691 -0
  71. package/dist/blocks/DateSelector/meta.js +6 -0
  72. package/dist/blocks/DateSelector/tests/DateSelector.e2e.yaml +229 -0
  73. package/dist/blocks/DateSelector/tests.yaml +117 -0
  74. package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -0
  75. package/dist/blocks/DateTimeSelector/e2e.js +26 -2
  76. package/dist/blocks/DateTimeSelector/gallery.yaml +770 -0
  77. package/dist/blocks/DateTimeSelector/meta.js +2 -0
  78. package/dist/blocks/DateTimeSelector/tests/DateTimeSelector.e2e.yaml +163 -0
  79. package/dist/blocks/DateTimeSelector/tests.yaml +140 -0
  80. package/dist/blocks/Descriptions/gallery.yaml +839 -0
  81. package/dist/blocks/Descriptions/tests/Descriptions.e2e.yaml +143 -0
  82. package/dist/blocks/Descriptions/tests.yaml +256 -0
  83. package/dist/blocks/Divider/gallery.yaml +375 -0
  84. package/dist/blocks/Divider/tests/Divider.e2e.yaml +107 -0
  85. package/dist/blocks/Divider/tests.yaml +58 -0
  86. package/dist/blocks/Drawer/gallery.yaml +1257 -0
  87. package/dist/blocks/Drawer/tests/Drawer.e2e.yaml +562 -0
  88. package/dist/blocks/Drawer/tests.yaml +80 -0
  89. package/dist/blocks/DropdownButton/gallery.yaml +606 -0
  90. package/dist/blocks/DropdownButton/tests/DropdownButton.e2e.yaml +243 -0
  91. package/dist/blocks/DropdownMenu/gallery.yaml +578 -0
  92. package/dist/blocks/DropdownMenu/tests/DropdownMenu.e2e.yaml +267 -0
  93. package/dist/blocks/Flex/gallery.yaml +1416 -0
  94. package/dist/blocks/Flex/tests/Flex.e2e.yaml +95 -0
  95. package/dist/blocks/Flex/tests.yaml +92 -0
  96. package/dist/blocks/FloatButton/gallery.yaml +518 -0
  97. package/dist/blocks/FloatButton/tests/FloatButton.e2e.yaml +73 -0
  98. package/dist/blocks/FloatButton/tests.yaml +59 -0
  99. package/dist/blocks/Footer/gallery.yaml +355 -0
  100. package/dist/blocks/Footer/tests/Footer.e2e.yaml +70 -0
  101. package/dist/blocks/Footer/tests.yaml +28 -0
  102. package/dist/blocks/Header/gallery.yaml +249 -0
  103. package/dist/blocks/Header/tests/Header.e2e.yaml +77 -0
  104. package/dist/blocks/Header/tests.yaml +36 -0
  105. package/dist/blocks/Label/Label.js +1 -1
  106. package/dist/blocks/Label/gallery.yaml +762 -0
  107. package/dist/blocks/Label/{style.module.css → style.css} +28 -28
  108. package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
  109. package/dist/blocks/Label/tests.yaml +212 -0
  110. package/dist/blocks/Layout/gallery.yaml +548 -0
  111. package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
  112. package/dist/blocks/Layout/tests.yaml +28 -0
  113. package/dist/blocks/ListSelector/gallery.yaml +223 -0
  114. package/dist/blocks/Masonry/gallery.yaml +989 -0
  115. package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
  116. package/dist/blocks/Masonry/tests.yaml +42 -0
  117. package/dist/blocks/MasonryList/gallery.yaml +224 -0
  118. package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
  119. package/dist/blocks/MasonryList/tests.yaml +42 -0
  120. package/dist/blocks/Menu/gallery.yaml +974 -0
  121. package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
  122. package/dist/blocks/Menu/tests.yaml +1053 -0
  123. package/dist/blocks/Message/gallery.yaml +860 -0
  124. package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
  125. package/dist/blocks/Message/tests.yaml +54 -0
  126. package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
  127. package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
  128. package/dist/blocks/MobileMenu/tests.yaml +359 -0
  129. package/dist/blocks/Modal/gallery.yaml +1039 -0
  130. package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
  131. package/dist/blocks/Modal/tests.yaml +75 -0
  132. package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
  133. package/dist/blocks/MonthSelector/e2e.js +26 -2
  134. package/dist/blocks/MonthSelector/gallery.yaml +687 -0
  135. package/dist/blocks/MonthSelector/meta.js +6 -0
  136. package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
  137. package/dist/blocks/MonthSelector/tests.yaml +124 -0
  138. package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
  139. package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
  140. package/dist/blocks/MultipleSelector/tests.yaml +201 -0
  141. package/dist/blocks/Notification/gallery.yaml +1376 -0
  142. package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
  143. package/dist/blocks/Notification/tests.yaml +97 -0
  144. package/dist/blocks/NumberInput/gallery.yaml +753 -0
  145. package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
  146. package/dist/blocks/NumberInput/tests.yaml +116 -0
  147. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
  148. package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
  149. package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
  150. package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
  151. package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
  152. package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
  153. package/dist/blocks/PageSidebarLayout/meta.js +1 -0
  154. package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
  155. package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
  156. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
  157. package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
  158. package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
  159. package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
  160. package/dist/blocks/Pagination/gallery.yaml +503 -0
  161. package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
  162. package/dist/blocks/Pagination/tests.yaml +80 -0
  163. package/dist/blocks/Paragraph/gallery.yaml +458 -0
  164. package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
  165. package/dist/blocks/Paragraph/tests.yaml +176 -0
  166. package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
  167. package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
  168. package/dist/blocks/ParagraphInput/tests.yaml +163 -0
  169. package/dist/blocks/PasswordInput/gallery.yaml +420 -0
  170. package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
  171. package/dist/blocks/PasswordInput/tests.yaml +78 -0
  172. package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
  173. package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
  174. package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
  175. package/dist/blocks/Popover/gallery.yaml +1301 -0
  176. package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
  177. package/dist/blocks/Popover/tests.yaml +105 -0
  178. package/dist/blocks/Progress/gallery.yaml +772 -0
  179. package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
  180. package/dist/blocks/Progress/tests.yaml +114 -0
  181. package/dist/blocks/QRCode/gallery.yaml +492 -0
  182. package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
  183. package/dist/blocks/QRCode/tests.yaml +113 -0
  184. package/dist/blocks/RadioSelector/gallery.yaml +816 -0
  185. package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
  186. package/dist/blocks/RadioSelector/tests.yaml +339 -0
  187. package/dist/blocks/RatingSlider/gallery.yaml +627 -0
  188. package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
  189. package/dist/blocks/RatingSlider/tests.yaml +116 -0
  190. package/dist/blocks/Result/gallery.yaml +925 -0
  191. package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
  192. package/dist/blocks/Result/tests.yaml +75 -0
  193. package/dist/blocks/Search/Search.js +1 -1
  194. package/dist/blocks/Search/SearchModal.js +18 -9
  195. package/dist/blocks/Search/gallery.yaml +170 -0
  196. package/dist/blocks/Search/meta.js +2 -1
  197. package/dist/blocks/Search/{style.module.css → style.css} +19 -12
  198. package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
  199. package/dist/blocks/Search/useSearchIndex.js +24 -2
  200. package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
  201. package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
  202. package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
  203. package/dist/blocks/Selector/gallery.yaml +1055 -0
  204. package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
  205. package/dist/blocks/Selector/tests.yaml +196 -0
  206. package/dist/blocks/Sider/gallery.yaml +994 -0
  207. package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
  208. package/dist/blocks/Sider/tests.yaml +20 -0
  209. package/dist/blocks/Slider/gallery.yaml +600 -0
  210. package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
  211. package/dist/blocks/Slider/tests.yaml +68 -0
  212. package/dist/blocks/Splitter/gallery.yaml +1511 -0
  213. package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
  214. package/dist/blocks/Splitter/tests.yaml +79 -0
  215. package/dist/blocks/Statistic/gallery.yaml +460 -0
  216. package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
  217. package/dist/blocks/Statistic/tests.yaml +77 -0
  218. package/dist/blocks/Steps/gallery.yaml +550 -0
  219. package/dist/blocks/Switch/gallery.yaml +502 -0
  220. package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
  221. package/dist/blocks/Switch/tests.yaml +87 -0
  222. package/dist/blocks/Tabs/gallery.yaml +1353 -0
  223. package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
  224. package/dist/blocks/Tabs/tests.yaml +349 -0
  225. package/dist/blocks/Tag/gallery.yaml +598 -0
  226. package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
  227. package/dist/blocks/Tag/tests.yaml +51 -0
  228. package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
  229. package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
  230. package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
  231. package/dist/blocks/TagMultipleSelector/meta.js +91 -0
  232. package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
  233. package/dist/blocks/TagSelector/TagSelector.js +49 -0
  234. package/dist/blocks/TagSelector/e2e.js +36 -0
  235. package/dist/blocks/TagSelector/gallery.yaml +70 -0
  236. package/dist/blocks/TagSelector/meta.js +91 -0
  237. package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
  238. package/dist/blocks/TextArea/gallery.yaml +618 -0
  239. package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
  240. package/dist/blocks/TextArea/tests.yaml +100 -0
  241. package/dist/blocks/TextInput/gallery.yaml +560 -0
  242. package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
  243. package/dist/blocks/TextInput/tests.yaml +114 -0
  244. package/dist/blocks/TimelineList/gallery.yaml +431 -0
  245. package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
  246. package/dist/blocks/TimelineList/tests.yaml +251 -0
  247. package/dist/blocks/Title/gallery.yaml +483 -0
  248. package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
  249. package/dist/blocks/Title/tests.yaml +175 -0
  250. package/dist/blocks/TitleInput/gallery.yaml +1006 -0
  251. package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
  252. package/dist/blocks/TitleInput/tests.yaml +181 -0
  253. package/dist/blocks/Tooltip/gallery.yaml +1214 -0
  254. package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
  255. package/dist/blocks/Tooltip/tests.yaml +92 -0
  256. package/dist/blocks/Tour/gallery.yaml +2305 -0
  257. package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
  258. package/dist/blocks/Tour/tests.yaml +151 -0
  259. package/dist/blocks/TreeInput/gallery.yaml +78 -0
  260. package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
  261. package/dist/blocks/TreeInput/tests.yaml +140 -0
  262. package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
  263. package/dist/blocks/TreeSelector/gallery.yaml +81 -0
  264. package/dist/blocks/Watermark/gallery.yaml +479 -0
  265. package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
  266. package/dist/blocks/Watermark/tests.yaml +86 -0
  267. package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
  268. package/dist/blocks/WeekSelector/e2e.js +26 -2
  269. package/dist/blocks/WeekSelector/gallery.yaml +589 -0
  270. package/dist/blocks/WeekSelector/meta.js +6 -0
  271. package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
  272. package/dist/blocks/WeekSelector/tests.yaml +122 -0
  273. package/dist/blocks.js +2 -0
  274. package/dist/disabledDate.js +91 -19
  275. package/dist/e2e.js +2 -0
  276. package/dist/getPresets.js +151 -0
  277. package/dist/getTagColor.js +44 -0
  278. package/dist/getTagSelectorOptions.js +30 -0
  279. package/dist/metas.js +2 -0
  280. package/dist/pickerPresetsStyle.css +26 -0
  281. package/dist/schemas/disabledDates.js +6 -2
  282. package/dist/schemas/index.js +1 -0
  283. package/dist/schemas/presets.js +111 -0
  284. package/dist/tagSelectorStyle.css +68 -0
  285. package/package.json +13 -13
@@ -0,0 +1,1483 @@
1
+ # Copyright 2020-2026 Lowdefy, Inc
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ - title: Basic Editable Paragraph
16
+ blocks:
17
+ - id: basic_default
18
+ type: ParagraphInput
19
+ properties:
20
+ editable: true
21
+ events:
22
+ onMount:
23
+ - id: set_default
24
+ type: SetState
25
+ params:
26
+ basic_default: Click the edit icon to start editing this paragraph. Changes are saved when you press Enter or click away.
27
+ - id: basic_editable_object
28
+ type: ParagraphInput
29
+ properties:
30
+ editable: {}
31
+ events:
32
+ onMount:
33
+ - id: set_default
34
+ type: SetState
35
+ params:
36
+ basic_editable_object: This paragraph uses an editable object configuration with defaults.
37
+ - id: basic_not_editable
38
+ type: ParagraphInput
39
+ properties:
40
+ editable: false
41
+ events:
42
+ onMount:
43
+ - id: set_default
44
+ type: SetState
45
+ params:
46
+ basic_not_editable: This paragraph has editing explicitly disabled and cannot be modified.
47
+ - id: basic_empty
48
+ type: ParagraphInput
49
+ properties:
50
+ editable: true
51
+ - id: basic_long
52
+ type: ParagraphInput
53
+ properties:
54
+ editable: true
55
+ events:
56
+ onMount:
57
+ - id: set_default
58
+ type: SetState
59
+ params:
60
+ basic_long: This is a longer paragraph to demonstrate how ParagraphInput handles multi-line content. When you click the edit icon, a text area appears allowing you to modify all of the text. The editable paragraph is useful for inline content editing scenarios where users should be able to quickly update descriptive text without navigating to a separate form.
61
+ - title: Editable Options - Tooltip
62
+ blocks:
63
+ - id: tooltip_short
64
+ type: ParagraphInput
65
+ properties:
66
+ editable:
67
+ tooltip: Edit
68
+ events:
69
+ onMount:
70
+ - id: set_default
71
+ type: SetState
72
+ params:
73
+ tooltip_short: Hover over the edit icon to see a short tooltip.
74
+ - id: tooltip_descriptive
75
+ type: ParagraphInput
76
+ properties:
77
+ editable:
78
+ tooltip: Click to edit this paragraph content
79
+ events:
80
+ onMount:
81
+ - id: set_default
82
+ type: SetState
83
+ params:
84
+ tooltip_descriptive: Hover over the edit icon to see a descriptive tooltip.
85
+ - id: tooltip_instructional
86
+ type: ParagraphInput
87
+ properties:
88
+ editable:
89
+ tooltip: Double-click or press Enter to save changes
90
+ events:
91
+ onMount:
92
+ - id: set_default
93
+ type: SetState
94
+ params:
95
+ tooltip_instructional: Tooltip with editing instructions.
96
+ - title: Editable Options - Custom Icon
97
+ blocks:
98
+ - id: icon_highlight
99
+ type: ParagraphInput
100
+ properties:
101
+ editable:
102
+ icon: AiOutlineHighlight
103
+ tooltip: Highlight to edit
104
+ events:
105
+ onMount:
106
+ - id: set_default
107
+ type: SetState
108
+ params:
109
+ icon_highlight: This paragraph uses a highlight icon instead of the default edit icon.
110
+ - id: icon_form
111
+ type: ParagraphInput
112
+ properties:
113
+ editable:
114
+ icon: AiOutlineForm
115
+ tooltip: Open editor
116
+ events:
117
+ onMount:
118
+ - id: set_default
119
+ type: SetState
120
+ params:
121
+ icon_form: Form edit icon on this paragraph.
122
+ - id: icon_edit
123
+ type: ParagraphInput
124
+ properties:
125
+ editable:
126
+ icon: AiOutlineEdit
127
+ tooltip: Edit paragraph
128
+ events:
129
+ onMount:
130
+ - id: set_default
131
+ type: SetState
132
+ params:
133
+ icon_edit: Explicit edit icon with tooltip.
134
+ - id: icon_custom_color
135
+ type: ParagraphInput
136
+ properties:
137
+ editable:
138
+ icon:
139
+ name: AiOutlineEdit
140
+ color: '#1677ff'
141
+ tooltip: Edit in blue
142
+ events:
143
+ onMount:
144
+ - id: set_default
145
+ type: SetState
146
+ params:
147
+ icon_custom_color: Custom colored edit icon.
148
+ - title: Editable Options - Max Length
149
+ blocks:
150
+ - id: maxlen_20
151
+ type: ParagraphInput
152
+ properties:
153
+ editable:
154
+ maxLength: 20
155
+ tooltip: Limited to 20 characters
156
+ events:
157
+ onMount:
158
+ - id: set_default
159
+ type: SetState
160
+ params:
161
+ maxlen_20: Max 20 characters.
162
+ - id: maxlen_50
163
+ type: ParagraphInput
164
+ properties:
165
+ editable:
166
+ maxLength: 50
167
+ tooltip: Max 50 characters
168
+ events:
169
+ onMount:
170
+ - id: set_default
171
+ type: SetState
172
+ params:
173
+ maxlen_50: This input is limited to 50 characters when editing.
174
+ - id: maxlen_100
175
+ type: ParagraphInput
176
+ properties:
177
+ editable:
178
+ maxLength: 100
179
+ events:
180
+ onMount:
181
+ - id: set_default
182
+ type: SetState
183
+ params:
184
+ maxlen_100: Limited to 100 characters when editing.
185
+ - id: maxlen_200
186
+ type: ParagraphInput
187
+ properties:
188
+ editable:
189
+ maxLength: 200
190
+ tooltip: Limited to 200 characters
191
+ events:
192
+ onMount:
193
+ - id: set_default
194
+ type: SetState
195
+ params:
196
+ maxlen_200: This paragraph allows up to 200 characters. It provides ample space for short descriptions while still enforcing a reasonable limit.
197
+ - title: Editable Options - AutoSize
198
+ blocks:
199
+ - id: autosize_true
200
+ type: ParagraphInput
201
+ properties:
202
+ editable:
203
+ autoSize: true
204
+ tooltip: Auto-sizing text area
205
+ events:
206
+ onMount:
207
+ - id: set_default
208
+ type: SetState
209
+ params:
210
+ autosize_true: This paragraph uses autoSize true so the text area automatically grows to fit the content when editing. Try clicking the edit icon to see the text area expand.
211
+ - id: autosize_min_max
212
+ type: ParagraphInput
213
+ properties:
214
+ editable:
215
+ autoSize:
216
+ minRows: 2
217
+ maxRows: 6
218
+ tooltip: 2-6 rows auto-size
219
+ events:
220
+ onMount:
221
+ - id: set_default
222
+ type: SetState
223
+ params:
224
+ autosize_min_max: AutoSize with minimum 2 rows and maximum 6 rows. The text area will start at 2 rows and grow up to 6 rows as you type more content.
225
+ - id: autosize_min_only
226
+ type: ParagraphInput
227
+ properties:
228
+ editable:
229
+ autoSize:
230
+ minRows: 3
231
+ tooltip: Minimum 3 rows
232
+ events:
233
+ onMount:
234
+ - id: set_default
235
+ type: SetState
236
+ params:
237
+ autosize_min_only: AutoSize with a minimum of 3 rows. The text area will always be at least 3 rows tall.
238
+ - id: autosize_max_only
239
+ type: ParagraphInput
240
+ properties:
241
+ editable:
242
+ autoSize:
243
+ maxRows: 4
244
+ tooltip: Maximum 4 rows
245
+ events:
246
+ onMount:
247
+ - id: set_default
248
+ type: SetState
249
+ params:
250
+ autosize_max_only: AutoSize with a maximum of 4 rows. Content beyond 4 rows will scroll.
251
+ - title: Editable Options - Editing State
252
+ blocks:
253
+ - id: editing_true
254
+ type: ParagraphInput
255
+ properties:
256
+ editable:
257
+ editing: true
258
+ events:
259
+ onMount:
260
+ - id: set_default
261
+ type: SetState
262
+ params:
263
+ editing_true: This paragraph starts in editing mode immediately.
264
+ - id: editing_false
265
+ type: ParagraphInput
266
+ properties:
267
+ editable:
268
+ editing: false
269
+ tooltip: Click to start editing
270
+ events:
271
+ onMount:
272
+ - id: set_default
273
+ type: SetState
274
+ params:
275
+ editing_false: This paragraph starts in display mode. Click the icon to edit.
276
+ - title: Editable Options - Combined
277
+ blocks:
278
+ - id: editable_full
279
+ type: ParagraphInput
280
+ properties:
281
+ editable:
282
+ icon: AiOutlineEdit
283
+ tooltip: Edit this paragraph
284
+ maxLength: 150
285
+ autoSize:
286
+ minRows: 2
287
+ maxRows: 8
288
+ events:
289
+ onMount:
290
+ - id: set_default
291
+ type: SetState
292
+ params:
293
+ editable_full: Fully configured editable paragraph with icon, tooltip, maxLength, and autoSize.
294
+ - id: editable_icon_tooltip_max
295
+ type: ParagraphInput
296
+ properties:
297
+ editable:
298
+ icon: AiOutlineHighlight
299
+ tooltip: Highlight to edit (max 100 chars)
300
+ maxLength: 100
301
+ events:
302
+ onMount:
303
+ - id: set_default
304
+ type: SetState
305
+ params:
306
+ editable_icon_tooltip_max: Custom icon with tooltip and character limit.
307
+ - id: editable_autosize_maxlen
308
+ type: ParagraphInput
309
+ properties:
310
+ editable:
311
+ autoSize: true
312
+ maxLength: 250
313
+ tooltip: Auto-sizing with 250 char limit
314
+ events:
315
+ onMount:
316
+ - id: set_default
317
+ type: SetState
318
+ params:
319
+ editable_autosize_maxlen: Auto-sizing text area with a 250 character limit. This is useful for description fields where you want the input to be comfortable but bounded.
320
+ - title: Typography Types
321
+ blocks:
322
+ - id: type_default
323
+ type: ParagraphInput
324
+ properties:
325
+ editable: true
326
+ events:
327
+ onMount:
328
+ - id: set_default
329
+ type: SetState
330
+ params:
331
+ type_default: Default type paragraph text. This is the standard appearance.
332
+ - id: type_secondary
333
+ type: ParagraphInput
334
+ properties:
335
+ type: secondary
336
+ editable: true
337
+ events:
338
+ onMount:
339
+ - id: set_default
340
+ type: SetState
341
+ params:
342
+ type_secondary: Secondary type paragraph text. Used for less prominent content.
343
+ - id: type_success
344
+ type: ParagraphInput
345
+ properties:
346
+ type: success
347
+ editable: true
348
+ events:
349
+ onMount:
350
+ - id: set_default
351
+ type: SetState
352
+ params:
353
+ type_success: Success type paragraph text. Indicates a positive outcome or valid state.
354
+ - id: type_warning
355
+ type: ParagraphInput
356
+ properties:
357
+ type: warning
358
+ editable: true
359
+ events:
360
+ onMount:
361
+ - id: set_default
362
+ type: SetState
363
+ params:
364
+ type_warning: Warning type paragraph text. Draws attention to potential issues.
365
+ - id: type_danger
366
+ type: ParagraphInput
367
+ properties:
368
+ type: danger
369
+ editable: true
370
+ events:
371
+ onMount:
372
+ - id: set_default
373
+ type: SetState
374
+ params:
375
+ type_danger: Danger type paragraph text. Highlights errors or destructive information.
376
+ - title: Text Styles - Individual
377
+ blocks:
378
+ - id: style_strong
379
+ type: ParagraphInput
380
+ properties:
381
+ strong: true
382
+ editable: true
383
+ events:
384
+ onMount:
385
+ - id: set_default
386
+ type: SetState
387
+ params:
388
+ style_strong: Strong (bold) paragraph text.
389
+ - id: style_italic
390
+ type: ParagraphInput
391
+ properties:
392
+ italic: true
393
+ editable: true
394
+ events:
395
+ onMount:
396
+ - id: set_default
397
+ type: SetState
398
+ params:
399
+ style_italic: Italic paragraph text.
400
+ - id: style_underline
401
+ type: ParagraphInput
402
+ properties:
403
+ underline: true
404
+ editable: true
405
+ events:
406
+ onMount:
407
+ - id: set_default
408
+ type: SetState
409
+ params:
410
+ style_underline: Underlined paragraph text.
411
+ - id: style_delete
412
+ type: ParagraphInput
413
+ properties:
414
+ delete: true
415
+ editable: true
416
+ events:
417
+ onMount:
418
+ - id: set_default
419
+ type: SetState
420
+ params:
421
+ style_delete: Deleted (strikethrough) paragraph text.
422
+ - id: style_mark
423
+ type: ParagraphInput
424
+ properties:
425
+ mark: true
426
+ editable: true
427
+ events:
428
+ onMount:
429
+ - id: set_default
430
+ type: SetState
431
+ params:
432
+ style_mark: Marked (highlighted) paragraph text.
433
+ - title: Text Styles - Combined
434
+ blocks:
435
+ - id: combo_strong_italic
436
+ type: ParagraphInput
437
+ properties:
438
+ strong: true
439
+ italic: true
440
+ editable: true
441
+ events:
442
+ onMount:
443
+ - id: set_default
444
+ type: SetState
445
+ params:
446
+ combo_strong_italic: Strong and italic combined paragraph.
447
+ - id: combo_underline_mark
448
+ type: ParagraphInput
449
+ properties:
450
+ underline: true
451
+ mark: true
452
+ editable: true
453
+ events:
454
+ onMount:
455
+ - id: set_default
456
+ type: SetState
457
+ params:
458
+ combo_underline_mark: Underline and mark combined paragraph.
459
+ - id: combo_strong_underline
460
+ type: ParagraphInput
461
+ properties:
462
+ strong: true
463
+ underline: true
464
+ editable: true
465
+ events:
466
+ onMount:
467
+ - id: set_default
468
+ type: SetState
469
+ params:
470
+ combo_strong_underline: Strong and underline combined paragraph.
471
+ - id: combo_strong_italic_underline
472
+ type: ParagraphInput
473
+ properties:
474
+ strong: true
475
+ italic: true
476
+ underline: true
477
+ editable: true
478
+ events:
479
+ onMount:
480
+ - id: set_default
481
+ type: SetState
482
+ params:
483
+ combo_strong_italic_underline: Strong, italic, and underline combined paragraph.
484
+ - id: combo_all_styles
485
+ type: ParagraphInput
486
+ properties:
487
+ strong: true
488
+ italic: true
489
+ underline: true
490
+ mark: true
491
+ editable: true
492
+ events:
493
+ onMount:
494
+ - id: set_default
495
+ type: SetState
496
+ params:
497
+ combo_all_styles: All text styles applied together.
498
+ - title: Text Styles - With Types
499
+ blocks:
500
+ - id: type_success_strong
501
+ type: ParagraphInput
502
+ properties:
503
+ type: success
504
+ strong: true
505
+ editable: true
506
+ events:
507
+ onMount:
508
+ - id: set_default
509
+ type: SetState
510
+ params:
511
+ type_success_strong: Success type with strong (bold) styling.
512
+ - id: type_warning_italic
513
+ type: ParagraphInput
514
+ properties:
515
+ type: warning
516
+ italic: true
517
+ editable: true
518
+ events:
519
+ onMount:
520
+ - id: set_default
521
+ type: SetState
522
+ params:
523
+ type_warning_italic: Warning type with italic styling.
524
+ - id: type_danger_underline
525
+ type: ParagraphInput
526
+ properties:
527
+ type: danger
528
+ underline: true
529
+ editable: true
530
+ events:
531
+ onMount:
532
+ - id: set_default
533
+ type: SetState
534
+ params:
535
+ type_danger_underline: Danger type with underline styling.
536
+ - id: type_secondary_mark
537
+ type: ParagraphInput
538
+ properties:
539
+ type: secondary
540
+ mark: true
541
+ editable: true
542
+ events:
543
+ onMount:
544
+ - id: set_default
545
+ type: SetState
546
+ params:
547
+ type_secondary_mark: Secondary type with mark (highlight) styling.
548
+ - id: type_success_strong_italic
549
+ type: ParagraphInput
550
+ properties:
551
+ type: success
552
+ strong: true
553
+ italic: true
554
+ editable: true
555
+ events:
556
+ onMount:
557
+ - id: set_default
558
+ type: SetState
559
+ params:
560
+ type_success_strong_italic: Success type with strong and italic styles combined.
561
+ - title: Copyable - Boolean
562
+ blocks:
563
+ - id: copyable_true
564
+ type: ParagraphInput
565
+ properties:
566
+ copyable: true
567
+ editable: true
568
+ events:
569
+ onMount:
570
+ - id: set_default
571
+ type: SetState
572
+ params:
573
+ copyable_true: Click the copy icon to copy this paragraph text to your clipboard.
574
+ - id: copyable_false
575
+ type: ParagraphInput
576
+ properties:
577
+ copyable: false
578
+ editable: true
579
+ events:
580
+ onMount:
581
+ - id: set_default
582
+ type: SetState
583
+ params:
584
+ copyable_false: This paragraph does not have a copy button.
585
+ - title: Copyable - Custom Text
586
+ blocks:
587
+ - id: copyable_text_different
588
+ type: ParagraphInput
589
+ properties:
590
+ copyable:
591
+ text: This is the custom copied text, not the displayed text.
592
+ editable: true
593
+ events:
594
+ onMount:
595
+ - id: set_default
596
+ type: SetState
597
+ params:
598
+ copyable_text_different: Displayed text differs from copied text.
599
+ - id: copyable_text_url
600
+ type: ParagraphInput
601
+ properties:
602
+ copyable:
603
+ text: https://lowdefy.com
604
+ editable: true
605
+ events:
606
+ onMount:
607
+ - id: set_default
608
+ type: SetState
609
+ params:
610
+ copyable_text_url: Click copy to get a URL instead of this visible text.
611
+ - id: copyable_text_code
612
+ type: ParagraphInput
613
+ properties:
614
+ copyable:
615
+ text: const greeting = "Hello, World!";
616
+ editable: true
617
+ events:
618
+ onMount:
619
+ - id: set_default
620
+ type: SetState
621
+ params:
622
+ copyable_text_code: Copy this block to get a code snippet.
623
+ - title: Copyable - Custom Tooltips
624
+ blocks:
625
+ - id: copyable_tooltips_array
626
+ type: ParagraphInput
627
+ properties:
628
+ copyable:
629
+ tooltips:
630
+ - Click to copy
631
+ - Copied!
632
+ editable: true
633
+ events:
634
+ onMount:
635
+ - id: set_default
636
+ type: SetState
637
+ params:
638
+ copyable_tooltips_array: Custom tooltips before and after copying.
639
+ - id: copyable_tooltips_single
640
+ type: ParagraphInput
641
+ properties:
642
+ copyable:
643
+ tooltips: Copy this paragraph
644
+ editable: true
645
+ events:
646
+ onMount:
647
+ - id: set_default
648
+ type: SetState
649
+ params:
650
+ copyable_tooltips_single: Single tooltip string for copy action.
651
+ - id: copyable_tooltips_descriptive
652
+ type: ParagraphInput
653
+ properties:
654
+ copyable:
655
+ tooltips:
656
+ - Copy paragraph to clipboard
657
+ - Successfully copied to clipboard!
658
+ editable: true
659
+ events:
660
+ onMount:
661
+ - id: set_default
662
+ type: SetState
663
+ params:
664
+ copyable_tooltips_descriptive: Descriptive copy tooltips for user guidance.
665
+ - title: Copyable - Custom Icon
666
+ blocks:
667
+ - id: copyable_icon_single
668
+ type: ParagraphInput
669
+ properties:
670
+ copyable:
671
+ icon: AiOutlineSnippets
672
+ tooltips:
673
+ - Copy snippet
674
+ - Snippet copied!
675
+ editable: true
676
+ events:
677
+ onMount:
678
+ - id: set_default
679
+ type: SetState
680
+ params:
681
+ copyable_icon_single: Custom copy icon on this paragraph.
682
+ - id: copyable_icon_array
683
+ type: ParagraphInput
684
+ properties:
685
+ copyable:
686
+ icon:
687
+ - AiOutlineCopy
688
+ - AiOutlineCheck
689
+ tooltips:
690
+ - Copy text
691
+ - Text copied!
692
+ editable: true
693
+ events:
694
+ onMount:
695
+ - id: set_default
696
+ type: SetState
697
+ params:
698
+ copyable_icon_array: Different icons before and after copying.
699
+ - id: copyable_icon_colored
700
+ type: ParagraphInput
701
+ properties:
702
+ copyable:
703
+ icon:
704
+ name: AiOutlineCopy
705
+ color: '#1677ff'
706
+ tooltips:
707
+ - Copy
708
+ - Done!
709
+ editable: true
710
+ events:
711
+ onMount:
712
+ - id: set_default
713
+ type: SetState
714
+ params:
715
+ copyable_icon_colored: Colored copy icon.
716
+ - title: Copyable - Combined with Text and Tooltips
717
+ blocks:
718
+ - id: copyable_full
719
+ type: ParagraphInput
720
+ properties:
721
+ copyable:
722
+ text: Custom text for clipboard
723
+ icon:
724
+ - AiOutlineCopy
725
+ - AiOutlineCheck
726
+ tooltips:
727
+ - Copy custom text
728
+ - Custom text copied!
729
+ editable: true
730
+ events:
731
+ onMount:
732
+ - id: set_default
733
+ type: SetState
734
+ params:
735
+ copyable_full: Fully configured copyable paragraph.
736
+ - title: Ellipsis - Boolean
737
+ blocks:
738
+ - id: ellipsis_true
739
+ type: ParagraphInput
740
+ properties:
741
+ ellipsis: true
742
+ editable: true
743
+ events:
744
+ onMount:
745
+ - id: set_default
746
+ type: SetState
747
+ params:
748
+ ellipsis_true: This is a very long paragraph that should be truncated with an ellipsis when it overflows a single line. The text continues beyond the visible area and the ellipsis indicator will show that there is more content available. This demonstrates the basic boolean ellipsis behavior where the text is clipped at one line by default.
749
+ - id: ellipsis_false
750
+ type: ParagraphInput
751
+ properties:
752
+ ellipsis: false
753
+ editable: true
754
+ events:
755
+ onMount:
756
+ - id: set_default
757
+ type: SetState
758
+ params:
759
+ ellipsis_false: This paragraph has ellipsis disabled and will display all text regardless of length. The content will wrap naturally across multiple lines without any truncation applied.
760
+ - title: Ellipsis - With Rows
761
+ blocks:
762
+ - id: ellipsis_rows_1
763
+ type: ParagraphInput
764
+ properties:
765
+ ellipsis:
766
+ rows: 1
767
+ editable: true
768
+ events:
769
+ onMount:
770
+ - id: set_default
771
+ type: SetState
772
+ params:
773
+ ellipsis_rows_1: This paragraph is limited to 1 row. Any text beyond the first line will be hidden and replaced with an ellipsis indicator. This demonstrates row-limited truncation for compact paragraph displays in space-constrained layouts.
774
+ - id: ellipsis_rows_2
775
+ type: ParagraphInput
776
+ properties:
777
+ ellipsis:
778
+ rows: 2
779
+ editable: true
780
+ events:
781
+ onMount:
782
+ - id: set_default
783
+ type: SetState
784
+ params:
785
+ ellipsis_rows_2: This paragraph is limited to 2 rows. The text will display across two lines before being truncated with an ellipsis. This is useful for paragraph previews where you want to show a brief excerpt of longer content. Additional text beyond two lines is hidden from view.
786
+ - id: ellipsis_rows_3
787
+ type: ParagraphInput
788
+ properties:
789
+ ellipsis:
790
+ rows: 3
791
+ editable: true
792
+ events:
793
+ onMount:
794
+ - id: set_default
795
+ type: SetState
796
+ params:
797
+ ellipsis_rows_3: This paragraph is limited to 3 rows. It allows more content to be visible compared to fewer rows, but still provides truncation for very long paragraphs. This setting is a good balance between showing enough content for context while keeping the layout compact. Any remaining text beyond three lines will be truncated with an ellipsis.
798
+ - id: ellipsis_rows_5
799
+ type: ParagraphInput
800
+ properties:
801
+ ellipsis:
802
+ rows: 5
803
+ editable: true
804
+ events:
805
+ onMount:
806
+ - id: set_default
807
+ type: SetState
808
+ params:
809
+ ellipsis_rows_5: This paragraph is limited to 5 rows. It provides a generous preview of the content while still enforcing a maximum height. This is appropriate for longer descriptions, article excerpts, or detailed explanations where you want to show a substantial portion of the text before truncation kicks in. The ellipsis appears after the fifth line, indicating there is additional content that has been clipped. Users can see enough context to decide whether to expand or interact further with the content.
810
+ - title: Ellipsis - Expandable
811
+ blocks:
812
+ - id: ellipsis_expandable_2
813
+ type: ParagraphInput
814
+ properties:
815
+ ellipsis:
816
+ rows: 2
817
+ expandable: true
818
+ editable: true
819
+ events:
820
+ onMount:
821
+ - id: set_default
822
+ type: SetState
823
+ params:
824
+ ellipsis_expandable_2: This paragraph can be expanded. Click the expand link to reveal the full content. The expandable feature allows users to see a preview and then choose to read more. This is a common pattern for long content sections where space is limited but the full text should still be accessible to interested readers.
825
+ - id: ellipsis_expandable_3
826
+ type: ParagraphInput
827
+ properties:
828
+ ellipsis:
829
+ rows: 3
830
+ expandable: true
831
+ editable: true
832
+ events:
833
+ onMount:
834
+ - id: set_default
835
+ type: SetState
836
+ params:
837
+ ellipsis_expandable_3: Expandable paragraph with 3 visible rows before truncation. Users can click to expand and see the full content. This is useful for displaying longer descriptions or articles where the initial preview should provide more context. The expand control provides a smooth reading experience for content that may be too long to display in full by default in a constrained layout.
838
+ - id: ellipsis_expandable_1
839
+ type: ParagraphInput
840
+ properties:
841
+ ellipsis:
842
+ rows: 1
843
+ expandable: true
844
+ editable: true
845
+ events:
846
+ onMount:
847
+ - id: set_default
848
+ type: SetState
849
+ params:
850
+ ellipsis_expandable_1: Single row with expand. This is compact but still allows users to access the full content by clicking the expand link. Useful for tight layouts like cards or sidebars.
851
+ - title: Ellipsis - With Suffix
852
+ blocks:
853
+ - id: ellipsis_suffix_author
854
+ type: ParagraphInput
855
+ properties:
856
+ ellipsis:
857
+ rows: 2
858
+ suffix: ' /Lowdefy Docs'
859
+ editable: true
860
+ events:
861
+ onMount:
862
+ - id: set_default
863
+ type: SetState
864
+ params:
865
+ ellipsis_suffix_author: This paragraph has a custom suffix appended after the ellipsis. The suffix text is always visible even when the content is truncated. This can be used to show important information like a date or author that should remain visible.
866
+ - id: ellipsis_suffix_expandable
867
+ type: ParagraphInput
868
+ properties:
869
+ ellipsis:
870
+ rows: 2
871
+ expandable: true
872
+ suffix: ' [Read more]'
873
+ editable: true
874
+ events:
875
+ onMount:
876
+ - id: set_default
877
+ type: SetState
878
+ params:
879
+ ellipsis_suffix_expandable: This paragraph has both expandable and suffix features combined. The suffix is always shown and the user can expand to read the full content. This provides a rich reading experience with metadata always visible at the end of the truncated preview text.
880
+ - id: ellipsis_suffix_date
881
+ type: ParagraphInput
882
+ properties:
883
+ ellipsis:
884
+ rows: 2
885
+ suffix: ' -- 2026-03-10'
886
+ editable: true
887
+ events:
888
+ onMount:
889
+ - id: set_default
890
+ type: SetState
891
+ params:
892
+ ellipsis_suffix_date: A news article excerpt that shows a date suffix. The date remains visible regardless of how much content is truncated, ensuring the reader always knows when the content was published.
893
+ - title: Disabled State
894
+ blocks:
895
+ - id: disabled_basic
896
+ type: ParagraphInput
897
+ properties:
898
+ disabled: true
899
+ editable: false
900
+ events:
901
+ onMount:
902
+ - id: set_default
903
+ type: SetState
904
+ params:
905
+ disabled_basic: This paragraph is disabled and cannot be edited.
906
+ - id: disabled_with_copyable
907
+ type: ParagraphInput
908
+ properties:
909
+ disabled: true
910
+ copyable: true
911
+ editable: false
912
+ events:
913
+ onMount:
914
+ - id: set_default
915
+ type: SetState
916
+ params:
917
+ disabled_with_copyable: Disabled paragraph that is still copyable.
918
+ - id: disabled_styled
919
+ type: ParagraphInput
920
+ properties:
921
+ disabled: true
922
+ strong: true
923
+ editable: false
924
+ events:
925
+ onMount:
926
+ - id: set_default
927
+ type: SetState
928
+ params:
929
+ disabled_styled: Disabled paragraph with strong style.
930
+ - id: disabled_with_type
931
+ type: ParagraphInput
932
+ properties:
933
+ disabled: true
934
+ type: secondary
935
+ editable: false
936
+ events:
937
+ onMount:
938
+ - id: set_default
939
+ type: SetState
940
+ params:
941
+ disabled_with_type: Disabled paragraph with secondary type.
942
+ - id: disabled_warning
943
+ type: ParagraphInput
944
+ properties:
945
+ disabled: true
946
+ type: warning
947
+ editable: false
948
+ events:
949
+ onMount:
950
+ - id: set_default
951
+ type: SetState
952
+ params:
953
+ disabled_warning: Disabled paragraph with warning type.
954
+ - id: disabled_danger_italic
955
+ type: ParagraphInput
956
+ properties:
957
+ disabled: true
958
+ type: danger
959
+ italic: true
960
+ editable: false
961
+ events:
962
+ onMount:
963
+ - id: set_default
964
+ type: SetState
965
+ params:
966
+ disabled_danger_italic: Disabled paragraph with danger type and italic style.
967
+ - title: Default Values
968
+ blocks:
969
+ - id: default_short
970
+ type: ParagraphInput
971
+ properties:
972
+ editable: true
973
+ events:
974
+ onMount:
975
+ - id: set_default
976
+ type: SetState
977
+ params:
978
+ default_short: Short default value.
979
+ - id: default_long
980
+ type: ParagraphInput
981
+ properties:
982
+ editable: true
983
+ events:
984
+ onMount:
985
+ - id: set_default
986
+ type: SetState
987
+ params:
988
+ default_long: This is a longer default value that spans multiple words and demonstrates how ParagraphInput handles pre-populated content. Users can click the edit icon to modify this text. The paragraph displays the full content by default.
989
+ - id: default_with_styles
990
+ type: ParagraphInput
991
+ properties:
992
+ strong: true
993
+ italic: true
994
+ editable: true
995
+ events:
996
+ onMount:
997
+ - id: set_default
998
+ type: SetState
999
+ params:
1000
+ default_with_styles: Default value with strong and italic styles applied.
1001
+ - id: default_with_type
1002
+ type: ParagraphInput
1003
+ properties:
1004
+ type: success
1005
+ editable: true
1006
+ events:
1007
+ onMount:
1008
+ - id: set_default
1009
+ type: SetState
1010
+ params:
1011
+ default_with_type: Default value displayed as success type.
1012
+ - id: default_empty
1013
+ type: ParagraphInput
1014
+ properties:
1015
+ editable: true
1016
+ - id: default_multiline
1017
+ type: ParagraphInput
1018
+ properties:
1019
+ editable:
1020
+ autoSize: true
1021
+ events:
1022
+ onMount:
1023
+ - id: set_default
1024
+ type: SetState
1025
+ params:
1026
+ default_multiline: First paragraph of content. Second paragraph of content. Third paragraph of content. This shows how ParagraphInput handles multi-line default values with natural line wrapping across the available width.
1027
+ - title: Style Overrides
1028
+ blocks:
1029
+ - id: style_custom_bg
1030
+ type: ParagraphInput
1031
+ style:
1032
+ .element:
1033
+ padding: 12
1034
+ borderRadius: 8
1035
+ properties:
1036
+ editable: true
1037
+ events:
1038
+ onMount:
1039
+ - id: set_default
1040
+ type: SetState
1041
+ params:
1042
+ style_custom_bg: Custom background color via inline style.
1043
+ - id: style_custom_border
1044
+ type: ParagraphInput
1045
+ style:
1046
+ .element:
1047
+ border: 1px solid
1048
+ padding: 16
1049
+ borderRadius: 8
1050
+ properties:
1051
+ editable: true
1052
+ events:
1053
+ onMount:
1054
+ - id: set_default
1055
+ type: SetState
1056
+ params:
1057
+ style_custom_border: Custom border and padding via inline style.
1058
+ - id: style_custom_text_color
1059
+ type: ParagraphInput
1060
+ style:
1061
+ .element:
1062
+ color: '#722ed1'
1063
+ fontSize: 16
1064
+ properties:
1065
+ editable: true
1066
+ events:
1067
+ onMount:
1068
+ - id: set_default
1069
+ type: SetState
1070
+ params:
1071
+ style_custom_text_color: Custom purple text color.
1072
+ - id: style_full_custom
1073
+ type: ParagraphInput
1074
+ style:
1075
+ .element:
1076
+ border: 2px solid
1077
+ borderRadius: 12
1078
+ color: '#d46b08'
1079
+ fontSize: 16
1080
+ padding: 16
1081
+ properties:
1082
+ editable: true
1083
+ events:
1084
+ onMount:
1085
+ - id: set_default
1086
+ type: SetState
1087
+ params:
1088
+ style_full_custom: Fully customized with background, border, padding, and text color.
1089
+ - id: style_card_like
1090
+ type: ParagraphInput
1091
+ style:
1092
+ .element:
1093
+ boxShadow: 0 2px 8px rgba(0, 0, 0, 0.1)
1094
+ borderRadius: 8
1095
+ padding: 20
1096
+ properties:
1097
+ editable: true
1098
+ events:
1099
+ onMount:
1100
+ - id: set_default
1101
+ type: SetState
1102
+ params:
1103
+ style_card_like: This paragraph is styled like a card with shadow, padding, and rounded corners. It demonstrates how inline styles can transform the appearance significantly.
1104
+ - title: CSS Class Overrides
1105
+ blocks:
1106
+ - id: class_rounded
1107
+ type: ParagraphInput
1108
+ class: rounded-lg bg-bg-layout p-4
1109
+ properties:
1110
+ editable: true
1111
+ events:
1112
+ onMount:
1113
+ - id: set_default
1114
+ type: SetState
1115
+ params:
1116
+ class_rounded: Tailwind classes for rounded corners, blue background, and padding.
1117
+ - id: class_shadow
1118
+ type: ParagraphInput
1119
+ class: shadow-md p-4 rounded-lg
1120
+ properties:
1121
+ editable: true
1122
+ events:
1123
+ onMount:
1124
+ - id: set_default
1125
+ type: SetState
1126
+ params:
1127
+ class_shadow: Tailwind shadow, padding, and rounded corners.
1128
+ - id: class_border
1129
+ type: ParagraphInput
1130
+ class: border border-border rounded-lg p-4
1131
+ properties:
1132
+ editable: true
1133
+ events:
1134
+ onMount:
1135
+ - id: set_default
1136
+ type: SetState
1137
+ params:
1138
+ class_border: Tailwind border with rounded corners.
1139
+ - id: class_gradient_bg
1140
+ type: ParagraphInput
1141
+ class: bg-gradient-to-r from-primary/10 to-primary/5 p-4 rounded-lg
1142
+ properties:
1143
+ editable: true
1144
+ events:
1145
+ onMount:
1146
+ - id: set_default
1147
+ type: SetState
1148
+ params:
1149
+ class_gradient_bg: Tailwind gradient background with padding and rounded corners.
1150
+ - title: Theme Token Overrides
1151
+ blocks:
1152
+ - id: theme_color_text
1153
+ type: ParagraphInput
1154
+ properties:
1155
+ editable: true
1156
+ theme:
1157
+ colorText: '#531dab'
1158
+ events:
1159
+ onMount:
1160
+ - id: set_default
1161
+ type: SetState
1162
+ params:
1163
+ theme_color_text: Custom text color using colorText token.
1164
+ - id: theme_font_serif
1165
+ type: ParagraphInput
1166
+ properties:
1167
+ editable: true
1168
+ theme:
1169
+ fontFamily: '"Georgia", "Times New Roman", serif'
1170
+ events:
1171
+ onMount:
1172
+ - id: set_default
1173
+ type: SetState
1174
+ params:
1175
+ theme_font_serif: Serif font family applied to this paragraph. Georgia and Times New Roman.
1176
+ - id: theme_font_size_24
1177
+ type: ParagraphInput
1178
+ properties:
1179
+ editable: true
1180
+ theme:
1181
+ fontSize: 24
1182
+ events:
1183
+ onMount:
1184
+ - id: set_default
1185
+ type: SetState
1186
+ params:
1187
+ theme_font_size_24: Extra large font size (24px) paragraph.
1188
+ - id: theme_weight_900
1189
+ type: ParagraphInput
1190
+ properties:
1191
+ strong: true
1192
+ editable: true
1193
+ theme:
1194
+ fontWeightStrong: 900
1195
+ events:
1196
+ onMount:
1197
+ - id: set_default
1198
+ type: SetState
1199
+ params:
1200
+ theme_weight_900: Heavy font weight (900) on strong paragraph.
1201
+ - id: theme_combined_elegant
1202
+ type: ParagraphInput
1203
+ properties:
1204
+ strong: true
1205
+ editable: true
1206
+ theme:
1207
+ colorText: '#1d39c4'
1208
+ fontFamily: '"Palatino Linotype", "Book Antiqua", serif'
1209
+ fontSize: 16
1210
+ fontWeightStrong: 700
1211
+ events:
1212
+ onMount:
1213
+ - id: set_default
1214
+ type: SetState
1215
+ params:
1216
+ theme_combined_elegant: Elegant styling with custom colors and typography.
1217
+ - title: Combined Features - Editable + Copyable
1218
+ blocks:
1219
+ - id: feat_editable_copyable
1220
+ type: ParagraphInput
1221
+ properties:
1222
+ editable: true
1223
+ copyable: true
1224
+ events:
1225
+ onMount:
1226
+ - id: set_default
1227
+ type: SetState
1228
+ params:
1229
+ feat_editable_copyable: This paragraph is both editable and copyable.
1230
+ - id: feat_editable_copyable_configured
1231
+ type: ParagraphInput
1232
+ properties:
1233
+ editable:
1234
+ tooltip: Edit paragraph
1235
+ maxLength: 200
1236
+ copyable:
1237
+ tooltips:
1238
+ - Copy text
1239
+ - Copied!
1240
+ events:
1241
+ onMount:
1242
+ - id: set_default
1243
+ type: SetState
1244
+ params:
1245
+ feat_editable_copyable_configured: Fully configured editable and copyable paragraph.
1246
+ - title: Combined Features - Copyable + Types
1247
+ blocks:
1248
+ - id: feat_copyable_success
1249
+ type: ParagraphInput
1250
+ properties:
1251
+ type: success
1252
+ copyable: true
1253
+ editable: true
1254
+ events:
1255
+ onMount:
1256
+ - id: set_default
1257
+ type: SetState
1258
+ params:
1259
+ feat_copyable_success: Copyable success paragraph.
1260
+ - id: feat_copyable_warning
1261
+ type: ParagraphInput
1262
+ properties:
1263
+ type: warning
1264
+ copyable:
1265
+ tooltips:
1266
+ - Copy warning text
1267
+ - Copied!
1268
+ editable: true
1269
+ events:
1270
+ onMount:
1271
+ - id: set_default
1272
+ type: SetState
1273
+ params:
1274
+ feat_copyable_warning: Copyable warning paragraph.
1275
+ - id: feat_copyable_danger
1276
+ type: ParagraphInput
1277
+ properties:
1278
+ type: danger
1279
+ copyable: true
1280
+ editable: true
1281
+ events:
1282
+ onMount:
1283
+ - id: set_default
1284
+ type: SetState
1285
+ params:
1286
+ feat_copyable_danger: Copyable danger paragraph.
1287
+ - title: Combined Features - Ellipsis + Styles
1288
+ blocks:
1289
+ - id: feat_ellipsis_strong
1290
+ type: ParagraphInput
1291
+ properties:
1292
+ strong: true
1293
+ ellipsis:
1294
+ rows: 2
1295
+ expandable: true
1296
+ editable: true
1297
+ events:
1298
+ onMount:
1299
+ - id: set_default
1300
+ type: SetState
1301
+ params:
1302
+ feat_ellipsis_strong: Strong styled paragraph with ellipsis truncation. This demonstrates how text styles are preserved even when the content is truncated. The bold styling applies to both the visible and hidden portions of the text.
1303
+ - id: feat_ellipsis_italic_mark
1304
+ type: ParagraphInput
1305
+ properties:
1306
+ italic: true
1307
+ mark: true
1308
+ ellipsis:
1309
+ rows: 2
1310
+ expandable: true
1311
+ editable: true
1312
+ events:
1313
+ onMount:
1314
+ - id: set_default
1315
+ type: SetState
1316
+ params:
1317
+ feat_ellipsis_italic_mark: Italic and marked paragraph with ellipsis. This combination shows that multiple text decorations work together with the ellipsis feature. Users can expand to see the full styled content.
1318
+ - id: feat_ellipsis_danger
1319
+ type: ParagraphInput
1320
+ properties:
1321
+ type: danger
1322
+ ellipsis:
1323
+ rows: 2
1324
+ expandable: true
1325
+ editable: true
1326
+ events:
1327
+ onMount:
1328
+ - id: set_default
1329
+ type: SetState
1330
+ params:
1331
+ feat_ellipsis_danger: Danger type paragraph with ellipsis. The red color is maintained on the truncated text and the expand link. This is useful for warning messages that may be long but should still show the danger styling prominently.
1332
+ - title: Combined Features - All Three Icons
1333
+ blocks:
1334
+ - id: feat_edit_copy_ellipsis
1335
+ type: ParagraphInput
1336
+ properties:
1337
+ editable:
1338
+ tooltip: Edit this text
1339
+ copyable:
1340
+ tooltips:
1341
+ - Copy to clipboard
1342
+ - Copied!
1343
+ ellipsis:
1344
+ rows: 2
1345
+ expandable: true
1346
+ events:
1347
+ onMount:
1348
+ - id: set_default
1349
+ type: SetState
1350
+ params:
1351
+ feat_edit_copy_ellipsis: This paragraph shows edit, copy, and ellipsis expand controls together. All three interaction modes are available simultaneously, giving the user full control over the paragraph content. They can edit inline, copy to clipboard, and expand to read the full text.
1352
+ - title: Full Featured Examples
1353
+ blocks:
1354
+ - id: full_success
1355
+ type: ParagraphInput
1356
+ properties:
1357
+ type: success
1358
+ strong: true
1359
+ editable:
1360
+ icon: AiOutlineEdit
1361
+ tooltip: Edit this paragraph
1362
+ maxLength: 300
1363
+ autoSize: true
1364
+ copyable:
1365
+ tooltips:
1366
+ - Copy paragraph
1367
+ - Paragraph copied!
1368
+ ellipsis:
1369
+ rows: 2
1370
+ expandable: true
1371
+ events:
1372
+ onMount:
1373
+ - id: set_default
1374
+ type: SetState
1375
+ params:
1376
+ full_success: This is a fully featured paragraph with editable, copyable, strong styling, success type, and ellipsis truncation with expandable content. It demonstrates how all features of ParagraphInput work together seamlessly.
1377
+ - id: full_warning
1378
+ type: ParagraphInput
1379
+ properties:
1380
+ type: warning
1381
+ italic: true
1382
+ editable:
1383
+ tooltip: Edit warning text
1384
+ maxLength: 250
1385
+ autoSize:
1386
+ minRows: 2
1387
+ maxRows: 6
1388
+ copyable:
1389
+ text: Custom copied warning text
1390
+ tooltips:
1391
+ - Copy warning
1392
+ - Warning copied!
1393
+ ellipsis:
1394
+ rows: 2
1395
+ expandable: true
1396
+ suffix: ' [Warning]'
1397
+ events:
1398
+ onMount:
1399
+ - id: set_default
1400
+ type: SetState
1401
+ params:
1402
+ full_warning: A warning paragraph with italic styling, copy support with custom text, editable configuration, and ellipsis with a suffix. This shows a complex combination of all available ParagraphInput features working in harmony.
1403
+ - id: full_themed
1404
+ type: ParagraphInput
1405
+ properties:
1406
+ strong: true
1407
+ editable:
1408
+ tooltip: Edit themed paragraph
1409
+ maxLength: 200
1410
+ autoSize: true
1411
+ copyable:
1412
+ tooltips:
1413
+ - Copy themed text
1414
+ - Copied!
1415
+ ellipsis:
1416
+ rows: 2
1417
+ expandable: true
1418
+ theme:
1419
+ colorText: '#722ed1'
1420
+ fontFamily: '"Georgia", serif'
1421
+ fontSize: 16
1422
+ fontWeightStrong: 700
1423
+ events:
1424
+ onMount:
1425
+ - id: set_default
1426
+ type: SetState
1427
+ params:
1428
+ full_themed: Fully featured paragraph with custom theme token overrides. Purple text color, serif font, and heavy bold weight combined with editable, copyable, and ellipsis features for a complete demonstration.
1429
+ - id: full_danger_card
1430
+ type: ParagraphInput
1431
+ class: border border-border bg-bg-layout p-4 rounded-lg
1432
+ properties:
1433
+ type: danger
1434
+ strong: true
1435
+ editable:
1436
+ icon: AiOutlineEdit
1437
+ tooltip: Edit error message
1438
+ maxLength: 500
1439
+ autoSize:
1440
+ minRows: 2
1441
+ maxRows: 10
1442
+ copyable:
1443
+ icon:
1444
+ - AiOutlineCopy
1445
+ - AiOutlineCheck
1446
+ tooltips:
1447
+ - Copy error details
1448
+ - Error details copied!
1449
+ ellipsis:
1450
+ rows: 2
1451
+ expandable: true
1452
+ events:
1453
+ onMount:
1454
+ - id: set_default
1455
+ type: SetState
1456
+ params:
1457
+ full_danger_card: A danger-styled paragraph in a card-like layout. The combination of danger type, strong text, Tailwind CSS classes for the container, and full editable and copyable configuration creates a visually distinct error message that can be edited and copied.
1458
+ - id: full_article_preview
1459
+ type: ParagraphInput
1460
+ class: shadow-sm p-4 rounded-lg
1461
+ properties:
1462
+ editable:
1463
+ tooltip: Edit article preview
1464
+ autoSize: true
1465
+ copyable:
1466
+ text: https://lowdefy.com/articles/example
1467
+ tooltips:
1468
+ - Copy article link
1469
+ - Link copied!
1470
+ ellipsis:
1471
+ rows: 3
1472
+ expandable: true
1473
+ suffix: ' -- by Lowdefy Team'
1474
+ theme:
1475
+ fontFamily: '"Georgia", serif'
1476
+ fontSize: 15
1477
+ lineHeight: 1.8
1478
+ events:
1479
+ onMount:
1480
+ - id: set_default
1481
+ type: SetState
1482
+ params:
1483
+ full_article_preview: An article preview paragraph that demonstrates a real-world use case. The paragraph shows a truncated preview with an author suffix, expandable content, and the ability to edit inline. The serif font and relaxed line height create a pleasant reading experience typical of content management interfaces.