@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,1200 @@
1
+ # Card
2
+
3
+ Card container with title, extra, cover, and actions.
4
+
5
+ Cards provide a flexible and extensible content container with multiple variants. This is the default card with a simple title and body content.
6
+
7
+ You can place any blocks inside the card body using the standard blocks key.
8
+
9
+ A card without a title. The header area is completely hidden, leaving only the body content. Useful as a simple elevated content container.
10
+
11
+ ```yaml
12
+ - id: basic_card
13
+ type: Card
14
+ properties:
15
+ title: Card Title
16
+ blocks:
17
+ - id: basic_card_p1
18
+ type: Paragraph
19
+ properties:
20
+ content: Cards provide a flexible and extensible content container with multiple
21
+ variants. This is the default card with a simple title and body
22
+ content.
23
+ - id: basic_card_p2
24
+ type: Paragraph
25
+ properties:
26
+ content: You can place any blocks inside the card body using the standard blocks
27
+ key.
28
+ - id: basic_no_title
29
+ type: Card
30
+ blocks:
31
+ - id: basic_no_title_content
32
+ type: Paragraph
33
+ properties:
34
+ content: A card without a title. The header area is completely hidden, leaving
35
+ only the body content. Useful as a simple elevated content container.
36
+ ```
37
+
38
+ Default size card with standard padding (24px) and normal header height (56px). This is the most common card size for general content.
39
+
40
+ Small size card with compact padding (12px) and shorter header (38px). Ideal for dense layouts, dashboards, or sidebar widgets.
41
+
42
+ ```yaml
43
+ - id: size_default_card
44
+ type: Card
45
+ layout:
46
+ flex: 1 1 0
47
+ properties:
48
+ title: Default Size
49
+ size: default
50
+ blocks:
51
+ - id: size_default_p
52
+ type: Paragraph
53
+ properties:
54
+ content: Default size card with standard padding (24px) and normal header height
55
+ (56px). This is the most common card size for general content.
56
+ - id: size_default_row
57
+ type: Box
58
+ layout:
59
+ gap: 8
60
+ blocks:
61
+ - id: size_default_tag1
62
+ type: Tag
63
+ properties:
64
+ title: Standard
65
+ color: blue
66
+ - id: size_default_tag2
67
+ type: Tag
68
+ properties:
69
+ title: 24px padding
70
+ color: default
71
+ - id: size_small_card
72
+ type: Card
73
+ layout:
74
+ flex: 1 1 0
75
+ properties:
76
+ title: Small Size
77
+ size: small
78
+ blocks:
79
+ - id: size_small_p
80
+ type: Paragraph
81
+ properties:
82
+ content: Small size card with compact padding (12px) and shorter header (38px).
83
+ Ideal for dense layouts, dashboards, or sidebar widgets.
84
+ - id: size_small_row
85
+ type: Box
86
+ layout:
87
+ gap: 8
88
+ blocks:
89
+ - id: size_small_tag1
90
+ type: Tag
91
+ properties:
92
+ title: Compact
93
+ color: green
94
+ - id: size_small_tag2
95
+ type: Tag
96
+ properties:
97
+ title: 12px padding
98
+ color: default
99
+ ```
100
+
101
+ The default card has a visible border. This clearly separates the card from its surroundings.
102
+
103
+ A borderless card blends into its container. Best used on colored backgrounds where the card's white fill provides enough contrast.
104
+
105
+ ```yaml
106
+ - id: border_wrapper
107
+ type: Box
108
+ class: bg-bg-layout p-6 rounded-lg
109
+ layout:
110
+ gap: 16
111
+ blocks:
112
+ - id: bordered_card
113
+ type: Card
114
+ layout:
115
+ flex: 1 1 0
116
+ properties:
117
+ title: Bordered (default)
118
+ bordered: true
119
+ blocks:
120
+ - id: bordered_content
121
+ type: Paragraph
122
+ properties:
123
+ content: The default card has a visible border. This clearly separates the card
124
+ from its surroundings.
125
+ - id: borderless_card
126
+ type: Card
127
+ layout:
128
+ flex: 1 1 0
129
+ properties:
130
+ title: Borderless
131
+ bordered: false
132
+ blocks:
133
+ - id: borderless_content
134
+ type: Paragraph
135
+ properties:
136
+ content: A borderless card blends into its container. Best used on colored
137
+ backgrounds where the card's white fill provides enough contrast.
138
+ ```
139
+
140
+ User John updated the project settings 2 minutes ago.
141
+
142
+ User Sarah added 3 new team members 15 minutes ago.
143
+
144
+ Deployment completed successfully 1 hour ago.
145
+
146
+ The extra slot renders content in the top-right corner of the card header, next to the title. It accepts any blocks, commonly used for action buttons or links.
147
+
148
+ ```yaml
149
+ - id: extra_text_card
150
+ type: Card
151
+ properties:
152
+ title: Recent Activity
153
+ slots:
154
+ extra:
155
+ blocks:
156
+ - id: extra_text_link
157
+ type: Button
158
+ layout:
159
+ flex: 0 0 auto
160
+ properties:
161
+ title: View All
162
+ color: primary
163
+ variant: link
164
+ size: small
165
+ blocks:
166
+ - id: extra_text_p1
167
+ type: Paragraph
168
+ properties:
169
+ content: User John updated the project settings 2 minutes ago.
170
+ - id: extra_text_p2
171
+ type: Paragraph
172
+ properties:
173
+ content: User Sarah added 3 new team members 15 minutes ago.
174
+ - id: extra_text_p3
175
+ type: Paragraph
176
+ properties:
177
+ content: Deployment completed successfully 1 hour ago.
178
+ - id: extra_buttons_card
179
+ type: Card
180
+ properties:
181
+ title: Project Settings
182
+ slots:
183
+ extra:
184
+ blocks:
185
+ - id: extra_btn_row
186
+ type: Box
187
+ layout:
188
+ gap: 8
189
+ blocks:
190
+ - id: extra_btn_edit
191
+ type: Button
192
+ layout:
193
+ flex: 0 0 auto
194
+ properties:
195
+ title: Edit
196
+ icon: AiOutlineEdit
197
+ color: primary
198
+ variant: outlined
199
+ size: small
200
+ - id: extra_btn_more
201
+ type: Button
202
+ layout:
203
+ flex: 0 0 auto
204
+ properties:
205
+ icon: AiOutlineEllipsis
206
+ color: default
207
+ variant: text
208
+ size: small
209
+ hideTitle: true
210
+ blocks:
211
+ - id: extra_buttons_content
212
+ type: Paragraph
213
+ properties:
214
+ content: The extra slot renders content in the top-right corner of the card
215
+ header, next to the title. It accepts any blocks, commonly used for
216
+ action buttons or links.
217
+ ```
218
+
219
+ The title slot lets you replace the default text title with any combination of blocks. Here we use an Avatar and Title block side by side. This overrides the properties.title string.
220
+
221
+ Custom Title Layout
222
+
223
+ Combining the title slot with the extra slot gives you full control over the entire header area.
224
+
225
+ Notifications
226
+
227
+ ```yaml
228
+ - id: title_slot_card
229
+ type: Card
230
+ slots:
231
+ title:
232
+ blocks:
233
+ - id: title_slot_row
234
+ type: Box
235
+ layout:
236
+ gap: 12
237
+ align: center
238
+ blocks:
239
+ - id: title_slot_avatar
240
+ type: Avatar
241
+ layout:
242
+ flex: 0 0 auto
243
+ properties:
244
+ icon: AiOutlineUser
245
+ color: "#1677ff"
246
+ - id: title_slot_text
247
+ type: Title
248
+ layout:
249
+ flex: 0 0 auto
250
+ properties:
251
+ content: Custom Title Layout
252
+ level: 5
253
+ blocks:
254
+ - id: title_slot_content
255
+ type: Paragraph
256
+ properties:
257
+ content: The title slot lets you replace the default text title with any
258
+ combination of blocks. Here we use an Avatar and Title block side by
259
+ side. This overrides the properties.title string.
260
+ - id: title_slot_badge_card
261
+ type: Card
262
+ slots:
263
+ title:
264
+ blocks:
265
+ - id: title_badge_row
266
+ type: Box
267
+ layout:
268
+ gap: 8
269
+ align: center
270
+ blocks:
271
+ - id: title_badge_text
272
+ type: Title
273
+ layout:
274
+ flex: 0 0 auto
275
+ properties:
276
+ content: Notifications
277
+ level: 5
278
+ - id: title_badge_tag
279
+ type: Tag
280
+ layout:
281
+ flex: 0 0 auto
282
+ properties:
283
+ title: 12 new
284
+ color: red
285
+ extra:
286
+ blocks:
287
+ - id: title_badge_extra_btn
288
+ type: Button
289
+ layout:
290
+ flex: 0 0 auto
291
+ properties:
292
+ title: Mark all read
293
+ color: primary
294
+ variant: link
295
+ size: small
296
+ blocks:
297
+ - id: title_badge_content
298
+ type: Paragraph
299
+ properties:
300
+ content: Combining the title slot with the extra slot gives you full control
301
+ over the entire header area.
302
+ ```
303
+
304
+ The cover slot renders content above the card body, typically used for images. It sits outside the body padding for edge-to-edge display.
305
+
306
+ Architecture Photography
307
+
308
+ A cover card without a header title. The title is placed inside the body instead, giving a magazine-style layout.
309
+
310
+ ```yaml
311
+ - id: cover_card_1
312
+ type: Card
313
+ layout:
314
+ flex: 1 1 0
315
+ properties:
316
+ title: Mountain Landscape
317
+ hoverable: true
318
+ slots:
319
+ cover:
320
+ blocks:
321
+ - id: cover_img_1
322
+ type: Html
323
+ properties:
324
+ html: <img alt="landscape" src="https://picsum.photos/seed/mountain/600/300"
325
+ style="width:100%; display:block;" />
326
+ blocks:
327
+ - id: cover_card_1_desc
328
+ type: Paragraph
329
+ properties:
330
+ content: The cover slot renders content above the card body, typically used for
331
+ images. It sits outside the body padding for edge-to-edge display.
332
+ - id: cover_card_2
333
+ type: Card
334
+ layout:
335
+ flex: 1 1 0
336
+ properties:
337
+ hoverable: true
338
+ slots:
339
+ cover:
340
+ blocks:
341
+ - id: cover_img_2
342
+ type: Html
343
+ properties:
344
+ html: <img alt="architecture" src="https://picsum.photos/seed/building/600/300"
345
+ style="width:100%; display:block;" />
346
+ blocks:
347
+ - id: cover_card_2_title
348
+ type: Title
349
+ properties:
350
+ content: Architecture Photography
351
+ level: 5
352
+ - id: cover_card_2_desc
353
+ type: Paragraph
354
+ properties:
355
+ content: A cover card without a header title. The title is placed inside the
356
+ body instead, giving a magazine-style layout.
357
+ - id: cover_card_2_tags
358
+ type: Box
359
+ layout:
360
+ gap: 8
361
+ blocks:
362
+ - id: cover_card_2_tag1
363
+ type: Tag
364
+ properties:
365
+ title: Photography
366
+ color: blue
367
+ - id: cover_card_2_tag2
368
+ type: Tag
369
+ properties:
370
+ title: Featured
371
+ color: gold
372
+ ```
373
+
374
+ Inner cards have a gray background and are designed for nesting inside a parent card. They provide visual grouping without extra border weight.
375
+
376
+ Multiple inner cards can stack within a parent to organize related sections. Each has its own title and content area.
377
+
378
+ Inner cards also support the small size variant for more compact layouts.
379
+
380
+ ```yaml
381
+ - id: inner_outer
382
+ type: Card
383
+ properties:
384
+ title: Group Title
385
+ slots:
386
+ extra:
387
+ blocks:
388
+ - id: inner_outer_extra
389
+ type: Button
390
+ layout:
391
+ flex: 0 0 auto
392
+ properties:
393
+ title: More
394
+ color: primary
395
+ variant: link
396
+ size: small
397
+ blocks:
398
+ - id: inner_first
399
+ type: Card
400
+ properties:
401
+ title: Inner Card One
402
+ inner: true
403
+ blocks:
404
+ - id: inner_first_content
405
+ type: Paragraph
406
+ properties:
407
+ content: Inner cards have a gray background and are designed for nesting inside
408
+ a parent card. They provide visual grouping without extra border
409
+ weight.
410
+ - id: inner_second
411
+ type: Card
412
+ properties:
413
+ title: Inner Card Two
414
+ inner: true
415
+ blocks:
416
+ - id: inner_second_content
417
+ type: Paragraph
418
+ properties:
419
+ content: Multiple inner cards can stack within a parent to organize related
420
+ sections. Each has its own title and content area.
421
+ - id: inner_third
422
+ type: Card
423
+ properties:
424
+ title: Inner Card Three
425
+ inner: true
426
+ size: small
427
+ blocks:
428
+ - id: inner_third_content
429
+ type: Paragraph
430
+ properties:
431
+ content: Inner cards also support the small size variant for more compact
432
+ layouts.
433
+ ```
434
+
435
+ Hover over any card in this section to see the elevation shadow effect. Commonly used for clickable card grids.
436
+
437
+ ```yaml
438
+ - id: hover_card_1
439
+ type: Card
440
+ layout:
441
+ flex: 1 1 0
442
+ properties:
443
+ title: Dashboard
444
+ hoverable: true
445
+ slots:
446
+ extra:
447
+ blocks:
448
+ - id: hover_card_1_icon
449
+ type: Icon
450
+ layout:
451
+ flex: 0 0 auto
452
+ properties:
453
+ name: AiOutlineDashboard
454
+ color: "#1677ff"
455
+ size: 20
456
+ blocks:
457
+ - id: hover_card_1_stat
458
+ type: Statistic
459
+ properties:
460
+ title: Active Users
461
+ value: 1248
462
+ - id: hover_card_1_p
463
+ type: Paragraph
464
+ properties:
465
+ content: Hover over any card in this section to see the elevation shadow effect.
466
+ Commonly used for clickable card grids.
467
+ - id: hover_card_2
468
+ type: Card
469
+ layout:
470
+ flex: 1 1 0
471
+ properties:
472
+ title: Revenue
473
+ hoverable: true
474
+ slots:
475
+ extra:
476
+ blocks:
477
+ - id: hover_card_2_icon
478
+ type: Icon
479
+ layout:
480
+ flex: 0 0 auto
481
+ properties:
482
+ name: AiOutlineDollarCircle
483
+ color: "#52c41a"
484
+ size: 20
485
+ blocks:
486
+ - id: hover_card_2_stat
487
+ type: Statistic
488
+ properties:
489
+ title: Monthly Revenue
490
+ value: 48650
491
+ prefix: $
492
+ - id: hover_card_2_tag
493
+ type: Tag
494
+ properties:
495
+ title: +12.5%
496
+ color: success
497
+ - id: hover_card_3
498
+ type: Card
499
+ layout:
500
+ flex: 1 1 0
501
+ properties:
502
+ title: Tasks
503
+ hoverable: true
504
+ slots:
505
+ extra:
506
+ blocks:
507
+ - id: hover_card_3_icon
508
+ type: Icon
509
+ layout:
510
+ flex: 0 0 auto
511
+ properties:
512
+ name: AiOutlineCheckCircle
513
+ color: "#faad14"
514
+ size: 20
515
+ blocks:
516
+ - id: hover_card_3_stat
517
+ type: Statistic
518
+ properties:
519
+ title: Completed Today
520
+ value: 37
521
+ - id: hover_card_3_progress
522
+ type: Progress
523
+ properties:
524
+ percent: 74
525
+ ```
526
+
527
+ Jane Cooper
528
+
529
+ Senior Product Designer
530
+
531
+ A web application for managing team workflows, project timelines, and resource allocation across departments.
532
+
533
+ Pro Plan
534
+
535
+ $29
536
+
537
+ / month
538
+
539
+ Unlimited projects
540
+
541
+ 50 GB storage
542
+
543
+ Priority support
544
+
545
+ Advanced analytics
546
+
547
+ ```yaml
548
+ - id: rich_profile_card
549
+ type: Card
550
+ layout:
551
+ flex: 1 1 0
552
+ blocks:
553
+ - id: rich_profile_row
554
+ type: Box
555
+ layout:
556
+ gap: 16
557
+ align: center
558
+ blocks:
559
+ - id: rich_profile_avatar
560
+ type: Avatar
561
+ layout:
562
+ flex: 0 0 auto
563
+ properties:
564
+ icon: AiOutlineUser
565
+ size: 64
566
+ color: "#fff"
567
+ backgroundColor: "#1677ff"
568
+ - id: rich_profile_info
569
+ type: Box
570
+ layout:
571
+ flex: 1 1 0
572
+ direction: column
573
+ gap: 4
574
+ blocks:
575
+ - id: rich_profile_name
576
+ type: Title
577
+ properties:
578
+ content: Jane Cooper
579
+ level: 4
580
+ - id: rich_profile_role
581
+ type: Paragraph
582
+ properties:
583
+ content: Senior Product Designer
584
+ - id: rich_profile_divider
585
+ type: Divider
586
+ - id: rich_profile_details
587
+ type: Descriptions
588
+ properties:
589
+ size: small
590
+ column: 1
591
+ items:
592
+ - label: Email
593
+ value: jane.cooper@example.com
594
+ - label: Location
595
+ value: San Francisco, CA
596
+ - label: Team
597
+ value: Design Systems
598
+ - id: rich_project_card
599
+ type: Card
600
+ layout:
601
+ flex: 1 1 0
602
+ properties:
603
+ title: Project Alpha
604
+ slots:
605
+ extra:
606
+ blocks:
607
+ - id: rich_project_tag
608
+ type: Tag
609
+ layout:
610
+ flex: 0 0 auto
611
+ properties:
612
+ title: Active
613
+ color: success
614
+ blocks:
615
+ - id: rich_project_desc
616
+ type: Paragraph
617
+ properties:
618
+ content: A web application for managing team workflows, project timelines, and
619
+ resource allocation across departments.
620
+ - id: rich_project_divider
621
+ type: Divider
622
+ - id: rich_project_meta_row
623
+ type: Box
624
+ layout:
625
+ gap: 16
626
+ blocks:
627
+ - id: rich_project_stat1
628
+ type: Statistic
629
+ layout:
630
+ flex: 1 1 0
631
+ properties:
632
+ title: Tasks
633
+ value: 42
634
+ - id: rich_project_stat2
635
+ type: Statistic
636
+ layout:
637
+ flex: 1 1 0
638
+ properties:
639
+ title: Members
640
+ value: 8
641
+ - id: rich_project_stat3
642
+ type: Statistic
643
+ layout:
644
+ flex: 1 1 0
645
+ properties:
646
+ title: Days Left
647
+ value: 14
648
+ - id: rich_project_progress
649
+ type: Progress
650
+ properties:
651
+ percent: 68
652
+ - id: rich_pricing_card
653
+ type: Card
654
+ layout:
655
+ flex: 1 1 0
656
+ properties:
657
+ hoverable: true
658
+ blocks:
659
+ - id: rich_pricing_title
660
+ type: Title
661
+ properties:
662
+ content: Pro Plan
663
+ level: 4
664
+ - id: rich_pricing_price_row
665
+ type: Box
666
+ layout:
667
+ align: baseline
668
+ gap: 4
669
+ blocks:
670
+ - id: rich_pricing_amount
671
+ type: Title
672
+ layout:
673
+ flex: 0 0 auto
674
+ properties:
675
+ content: $29
676
+ level: 2
677
+ - id: rich_pricing_period
678
+ type: Paragraph
679
+ layout:
680
+ flex: 0 0 auto
681
+ properties:
682
+ content: / month
683
+ - id: rich_pricing_divider
684
+ type: Divider
685
+ - id: rich_pricing_f1
686
+ type: Paragraph
687
+ properties:
688
+ content: Unlimited projects
689
+ - id: rich_pricing_f2
690
+ type: Paragraph
691
+ properties:
692
+ content: 50 GB storage
693
+ - id: rich_pricing_f3
694
+ type: Paragraph
695
+ properties:
696
+ content: Priority support
697
+ - id: rich_pricing_f4
698
+ type: Paragraph
699
+ properties:
700
+ content: Advanced analytics
701
+ - id: rich_pricing_btn
702
+ type: Button
703
+ properties:
704
+ title: Get Started
705
+ color: primary
706
+ variant: solid
707
+ block: true
708
+ ```
709
+
710
+ Track key metrics and performance indicators across your application in real time.
711
+
712
+ Role-based access control, audit logging, and two-factor authentication for your team.
713
+
714
+ Connect with over 50 third-party services including Slack, GitHub, Jira, and more.
715
+
716
+ Shared workspaces, comments, mentions, and real-time co-editing for seamless teamwork.
717
+
718
+ ```yaml
719
+ - id: grid_card_1
720
+ type: Card
721
+ layout:
722
+ flex: 1 1 280px
723
+ properties:
724
+ title: Analytics
725
+ size: small
726
+ hoverable: true
727
+ slots:
728
+ extra:
729
+ blocks:
730
+ - id: grid_card_1_icon
731
+ type: Icon
732
+ layout:
733
+ flex: 0 0 auto
734
+ properties:
735
+ name: AiOutlineBarChart
736
+ color: "#1677ff"
737
+ blocks:
738
+ - id: grid_card_1_p
739
+ type: Paragraph
740
+ properties:
741
+ content: Track key metrics and performance indicators across your application in
742
+ real time.
743
+ - id: grid_card_1_tags
744
+ type: Box
745
+ layout:
746
+ gap: 8
747
+ blocks:
748
+ - id: grid_card_1_t1
749
+ type: Tag
750
+ properties:
751
+ title: Metrics
752
+ color: blue
753
+ - id: grid_card_1_t2
754
+ type: Tag
755
+ properties:
756
+ title: Real-time
757
+ color: cyan
758
+ - id: grid_card_2
759
+ type: Card
760
+ layout:
761
+ flex: 1 1 280px
762
+ properties:
763
+ title: Security
764
+ size: small
765
+ hoverable: true
766
+ slots:
767
+ extra:
768
+ blocks:
769
+ - id: grid_card_2_icon
770
+ type: Icon
771
+ layout:
772
+ flex: 0 0 auto
773
+ properties:
774
+ name: AiOutlineLock
775
+ color: "#52c41a"
776
+ blocks:
777
+ - id: grid_card_2_p
778
+ type: Paragraph
779
+ properties:
780
+ content: Role-based access control, audit logging, and two-factor authentication
781
+ for your team.
782
+ - id: grid_card_2_tags
783
+ type: Box
784
+ layout:
785
+ gap: 8
786
+ blocks:
787
+ - id: grid_card_2_t1
788
+ type: Tag
789
+ properties:
790
+ title: RBAC
791
+ color: green
792
+ - id: grid_card_2_t2
793
+ type: Tag
794
+ properties:
795
+ title: 2FA
796
+ color: lime
797
+ - id: grid_card_3
798
+ type: Card
799
+ layout:
800
+ flex: 1 1 280px
801
+ properties:
802
+ title: Integrations
803
+ size: small
804
+ hoverable: true
805
+ slots:
806
+ extra:
807
+ blocks:
808
+ - id: grid_card_3_icon
809
+ type: Icon
810
+ layout:
811
+ flex: 0 0 auto
812
+ properties:
813
+ name: AiOutlineApi
814
+ color: "#722ed1"
815
+ blocks:
816
+ - id: grid_card_3_p
817
+ type: Paragraph
818
+ properties:
819
+ content: Connect with over 50 third-party services including Slack, GitHub,
820
+ Jira, and more.
821
+ - id: grid_card_3_tags
822
+ type: Box
823
+ layout:
824
+ gap: 8
825
+ blocks:
826
+ - id: grid_card_3_t1
827
+ type: Tag
828
+ properties:
829
+ title: API
830
+ color: purple
831
+ - id: grid_card_3_t2
832
+ type: Tag
833
+ properties:
834
+ title: Webhooks
835
+ color: geekblue
836
+ - id: grid_card_4
837
+ type: Card
838
+ layout:
839
+ flex: 1 1 280px
840
+ properties:
841
+ title: Collaboration
842
+ size: small
843
+ hoverable: true
844
+ slots:
845
+ extra:
846
+ blocks:
847
+ - id: grid_card_4_icon
848
+ type: Icon
849
+ layout:
850
+ flex: 0 0 auto
851
+ properties:
852
+ name: AiOutlineTeam
853
+ color: "#fa8c16"
854
+ blocks:
855
+ - id: grid_card_4_p
856
+ type: Paragraph
857
+ properties:
858
+ content: Shared workspaces, comments, mentions, and real-time co-editing for
859
+ seamless teamwork.
860
+ - id: grid_card_4_tags
861
+ type: Box
862
+ layout:
863
+ gap: 8
864
+ blocks:
865
+ - id: grid_card_4_t1
866
+ type: Tag
867
+ properties:
868
+ title: Teams
869
+ color: orange
870
+ - id: grid_card_4_t2
871
+ type: Tag
872
+ properties:
873
+ title: Comments
874
+ color: gold
875
+ ```
876
+
877
+ Gradient Card
878
+
879
+ Using Tailwind CSS classes to create a gradient background card. The class property on the Card applies utility classes directly to the wrapper.
880
+
881
+ A borderless card with extra-large shadow and rounded corners. The shadow-xl class creates a prominent floating effect.
882
+
883
+ A left accent border highlights important cards. Combine Tailwind border utilities with the Card component for custom accents.
884
+
885
+ ```yaml
886
+ - id: styled_gradient
887
+ type: Card
888
+ layout:
889
+ flex: 1 1 0
890
+ class: bg-gradient-to-br from-primary/100 to-purple-600 text-white border-0
891
+ rounded-xl
892
+ blocks:
893
+ - id: styled_gradient_title
894
+ type: Title
895
+ class: text-white
896
+ properties:
897
+ content: Gradient Card
898
+ level: 4
899
+ - id: styled_gradient_p
900
+ type: Paragraph
901
+ class: text-blue-100
902
+ properties:
903
+ content: Using Tailwind CSS classes to create a gradient background card. The
904
+ class property on the Card applies utility classes directly to the
905
+ wrapper.
906
+ - id: styled_shadow
907
+ type: Card
908
+ layout:
909
+ flex: 1 1 0
910
+ class: shadow-xl rounded-2xl border-0
911
+ properties:
912
+ title: Elevated Card
913
+ blocks:
914
+ - id: styled_shadow_p
915
+ type: Paragraph
916
+ properties:
917
+ content: A borderless card with extra-large shadow and rounded corners. The
918
+ shadow-xl class creates a prominent floating effect.
919
+ - id: styled_accent
920
+ type: Card
921
+ layout:
922
+ flex: 1 1 0
923
+ class: border-l-4 border-l-green-500 rounded-lg
924
+ properties:
925
+ title: Accent Border
926
+ blocks:
927
+ - id: styled_accent_p
928
+ type: Paragraph
929
+ properties:
930
+ content: A left accent border highlights important cards. Combine Tailwind
931
+ border utilities with the Card component for custom accents.
932
+ ```
933
+
934
+ Using style.header and style.body to apply custom CSS to the card header and body sections separately. The header has a blue tint with a matching border.
935
+
936
+ A manually styled dark card using inline styles on the header and body. For app-wide dark themes, prefer antd theme tokens or ConfigProvider.
937
+
938
+ Inline styles on the header and body can override the default padding for a more compact layout without using the small size variant.
939
+
940
+ ```yaml
941
+ - id: style_header_bg
942
+ type: Card
943
+ layout:
944
+ flex: 1 1 0
945
+ properties:
946
+ title: Colored Header
947
+ style:
948
+ .header:
949
+ borderBottom: 1px solid
950
+ .body: null
951
+ blocks:
952
+ - id: style_header_bg_p
953
+ type: Paragraph
954
+ properties:
955
+ content: Using style.header and style.body to apply custom CSS to the card
956
+ header and body sections separately. The header has a blue tint with a
957
+ matching border.
958
+ - id: style_dark_card
959
+ type: Card
960
+ layout:
961
+ flex: 1 1 0
962
+ properties:
963
+ title: Dark Theme Card
964
+ style:
965
+ .header:
966
+ backgroundColor: "#1f1f1f"
967
+ color: "#ffffff"
968
+ borderBottom: 1px solid
969
+ .body:
970
+ backgroundColor: "#2a2a2a"
971
+ blocks:
972
+ - id: style_dark_p
973
+ type: Paragraph
974
+ class: text-text-secondary
975
+ properties:
976
+ content: A manually styled dark card using inline styles on the header and body.
977
+ For app-wide dark themes, prefer antd theme tokens or ConfigProvider.
978
+ - id: style_compact_card
979
+ type: Card
980
+ layout:
981
+ flex: 1 1 0
982
+ properties:
983
+ title: Compact Custom Padding
984
+ style:
985
+ .header:
986
+ padding: 8px 16px
987
+ minHeight: 40px
988
+ .body:
989
+ padding: 12px 16px
990
+ blocks:
991
+ - id: style_compact_p
992
+ type: Paragraph
993
+ properties:
994
+ content: Inline styles on the header and body can override the default padding
995
+ for a more compact layout without using the small size variant.
996
+ ```
997
+
998
+ Card supports these CSS keys: element, header, body, cover, actions, extra. Use class as an object to target each area with Tailwind classes.
999
+
1000
+ Combining the hoverable property with a Tailwind hover ring transition creates an interactive highlight on mouse over.
1001
+
1002
+ The extra CSS key lets you style the container around the extra slot content. Here a green pill background wraps the status tag.
1003
+
1004
+ ```yaml
1005
+ - id: css_element
1006
+ type: Card
1007
+ layout:
1008
+ flex: 1 1 0
1009
+ class:
1010
+ element: shadow-lg rounded-xl
1011
+ header: bg-bg-layout
1012
+ body: bg-bg-container
1013
+ properties:
1014
+ title: Element + Header + Body
1015
+ blocks:
1016
+ - id: css_element_p
1017
+ type: Paragraph
1018
+ properties:
1019
+ content: "Card supports these CSS keys: element, header, body, cover, actions,
1020
+ extra. Use class as an object to target each area with Tailwind
1021
+ classes."
1022
+ - id: css_hover_ring
1023
+ type: Card
1024
+ layout:
1025
+ flex: 1 1 0
1026
+ class:
1027
+ element: hover:ring-2 hover:ring-blue-400 transition-all duration-200 rounded-lg
1028
+ properties:
1029
+ title: Hover Ring Effect
1030
+ hoverable: true
1031
+ blocks:
1032
+ - id: css_hover_ring_p
1033
+ type: Paragraph
1034
+ properties:
1035
+ content: Combining the hoverable property with a Tailwind hover ring transition
1036
+ creates an interactive highlight on mouse over.
1037
+ - id: css_extra_styled
1038
+ type: Card
1039
+ layout:
1040
+ flex: 1 1 0
1041
+ class:
1042
+ extra: bg-bg-layout px-3 py-1 rounded-full
1043
+ properties:
1044
+ title: Styled Extra Area
1045
+ slots:
1046
+ extra:
1047
+ blocks:
1048
+ - id: css_extra_tag
1049
+ type: Tag
1050
+ layout:
1051
+ flex: 0 0 auto
1052
+ properties:
1053
+ title: Live
1054
+ color: success
1055
+ blocks:
1056
+ - id: css_extra_styled_p
1057
+ type: Paragraph
1058
+ properties:
1059
+ content: The extra CSS key lets you style the container around the extra slot
1060
+ content. Here a green pill background wraps the status tag.
1061
+ ```
1062
+
1063
+ Override bodyPadding and headerPadding tokens for extra spacious cards. These tokens control the internal spacing of the card.
1064
+
1065
+ The headerBg token changes the card header background color, and colorTextHeading changes the title text color. These apply through the antd theme system.
1066
+
1067
+ The borderRadiusLG token controls the card corner radius. Set a large value for a pill-like card appearance.
1068
+
1069
+ Combine the small size variant with custom SM tokens for an ultra-compact card. Useful for data-dense dashboards.
1070
+
1071
+ A warm-toned card using theme tokens to customize the background, header, text, and border colors. Theme tokens cascade correctly through the antd design system.
1072
+
1073
+ ```yaml
1074
+ - id: theme_large_padding
1075
+ type: Card
1076
+ layout:
1077
+ flex: 1 1 0
1078
+ properties:
1079
+ title: Large Padding
1080
+ theme:
1081
+ bodyPadding: 40
1082
+ headerPadding: 40
1083
+ blocks:
1084
+ - id: theme_large_padding_p
1085
+ type: Paragraph
1086
+ properties:
1087
+ content: Override bodyPadding and headerPadding tokens for extra spacious cards.
1088
+ These tokens control the internal spacing of the card.
1089
+ - id: theme_colored_header
1090
+ type: Card
1091
+ layout:
1092
+ flex: 1 1 0
1093
+ properties:
1094
+ title: Custom Header Background
1095
+ theme:
1096
+ colorTextHeading: "#389e0d"
1097
+ blocks:
1098
+ - id: theme_colored_header_p
1099
+ type: Paragraph
1100
+ properties:
1101
+ content: The headerBg token changes the card header background color, and
1102
+ colorTextHeading changes the title text color. These apply through the
1103
+ antd theme system.
1104
+ - id: theme_rounded
1105
+ type: Card
1106
+ layout:
1107
+ flex: 1 1 0
1108
+ properties:
1109
+ title: Extra Rounded
1110
+ theme:
1111
+ borderRadiusLG: 20
1112
+ blocks:
1113
+ - id: theme_rounded_p
1114
+ type: Paragraph
1115
+ properties:
1116
+ content: The borderRadiusLG token controls the card corner radius. Set a large
1117
+ value for a pill-like card appearance.
1118
+ - id: theme_dense
1119
+ type: Card
1120
+ layout:
1121
+ flex: 1 1 0
1122
+ properties:
1123
+ title: Dense Card
1124
+ size: small
1125
+ theme:
1126
+ bodyPaddingSM: 8
1127
+ headerPaddingSM: 8
1128
+ headerHeightSM: 32
1129
+ headerFontSizeSM: 12
1130
+ blocks:
1131
+ - id: theme_dense_p
1132
+ type: Paragraph
1133
+ properties:
1134
+ content: Combine the small size variant with custom SM tokens for an
1135
+ ultra-compact card. Useful for data-dense dashboards.
1136
+ - id: theme_custom_colors
1137
+ type: Card
1138
+ properties:
1139
+ title: Custom Color Scheme
1140
+ theme:
1141
+ colorTextHeading: "#d46b08"
1142
+ colorText: "#874d00"
1143
+ colorBorderSecondary: "#ffd591"
1144
+ blocks:
1145
+ - id: theme_custom_colors_p
1146
+ type: Paragraph
1147
+ properties:
1148
+ content: A warm-toned card using theme tokens to customize the background,
1149
+ header, text, and border colors. Theme tokens cascade correctly
1150
+ through the antd design system.
1151
+ ```
1152
+
1153
+ | Property | Type | Default | Description |
1154
+ | --- | --- | --- | --- |
1155
+ | `bordered` | boolean | `true` | Toggles rendering of the border around the card. |
1156
+ | `hoverable` | boolean | `false` | Lift up when hovering card. |
1157
+ | `inner` | boolean | `false` | Change the card style to inner. |
1158
+ | `size` | string | `"default"` | Size of the card. Enum: `default`, `small`. |
1159
+ | `title` | string | - | Title to show in the title area - supports html. Overwritten by blocks in the title content area. |
1160
+ | `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design card tokens](https://ant.design/components/card#design-token). |
1161
+ | `theme.headerBg` | string | `"transparent"` | Background color of the card header. |
1162
+ | `theme.headerFontSize` | number | `16` | Font size of the card header title. |
1163
+ | `theme.headerFontSizeSM` | number | `14` | Font size of the card header title for small cards. |
1164
+ | `theme.headerHeight` | number | `56` | Height of the card header. |
1165
+ | `theme.headerHeightSM` | number | `38` | Height of the card header for small cards. |
1166
+ | `theme.actionsBg` | string | `"#ffffff"` | Background color of the card actions area. |
1167
+ | `theme.actionsLiMargin` | string | `"12px 0"` | Margin of each action item in the card actions area. |
1168
+ | `theme.tabsMarginBottom` | number | `-17` | Bottom margin adjustment for tabs in the card. |
1169
+ | `theme.extraColor` | string | `"rgba(0,0,0,0.88)"` | Text color for the extra content area in the header. |
1170
+ | `theme.bodyPadding` | number | `24` | Padding of the card body. |
1171
+ | `theme.bodyPaddingSM` | number | `12` | Padding of the card body for small cards. |
1172
+ | `theme.headerPadding` | number | `24` | Horizontal padding of the card header. |
1173
+ | `theme.headerPaddingSM` | number | `12` | Horizontal padding of the card header for small cards. |
1174
+ | `theme.borderRadiusLG` | number | `8` | Border radius of the card. |
1175
+ | `theme.colorBorderSecondary` | string | - | Border color of the card. |
1176
+ | `theme.colorBgContainer` | string | - | Background color of the card body. |
1177
+ | `theme.colorText` | string | - | Text color inside the card. |
1178
+ | `theme.colorTextHeading` | string | - | Color of the card header title text. |
1179
+ | `theme.boxShadowTertiary` | string | - | Shadow applied to the card on hover when hoverable is true. |
1180
+
1181
+ | Event | Event Data | Description |
1182
+ | --- | --- | --- |
1183
+ | `onClick` | \- | Trigger actions when the Card is clicked. |
1184
+
1185
+ | Key | Target |
1186
+ | --- | --- |
1187
+ | `/block` | Outer block wrapper (always available). |
1188
+ | `/element` | The Card element. |
1189
+ | `/header` | The Card header. |
1190
+ | `/body` | The Card body. |
1191
+ | `/cover` | The Card cover. |
1192
+ | `/actions` | The Card actions. |
1193
+ | `/extra` | The Card extra content. |
1194
+
1195
+ | Slot | Description |
1196
+ | --- | --- |
1197
+ | `content` | Main Card body. |
1198
+ | `cover` | Image or content above the body. |
1199
+ | `extra` | Extra content in the top-right header. |
1200
+ | `title` | Title area. Overrides the title property. |