@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.
- package/LICENSE +201 -0
- package/README.md +20 -0
- package/content/actions/callapi.md +66 -0
- package/content/actions/callmethod.md +41 -0
- package/content/actions/copytoclipboard.md +32 -0
- package/content/actions/displaymessage.md +53 -0
- package/content/actions/downloadcsv.md +89 -0
- package/content/actions/fetch.md +50 -0
- package/content/actions/geolocationcurrentposition.md +56 -0
- package/content/actions/link.md +104 -0
- package/content/actions/login.md +85 -0
- package/content/actions/logout.md +56 -0
- package/content/actions/pdfmake.md +304 -0
- package/content/actions/request.md +67 -0
- package/content/actions/reset.md +27 -0
- package/content/actions/resetvalidation.md +85 -0
- package/content/actions/scrollto.md +85 -0
- package/content/actions/setdarkmode.md +62 -0
- package/content/actions/setfocus.md +33 -0
- package/content/actions/setglobal.md +63 -0
- package/content/actions/setlocale.md +69 -0
- package/content/actions/setstate.md +70 -0
- package/content/actions/throw.md +72 -0
- package/content/actions/validate.md +87 -0
- package/content/actions/wait.md +24 -0
- package/content/agents/agent-endpoint-tools.md +190 -0
- package/content/agents/agent-mcp-tools.md +124 -0
- package/content/agents/agent-multi-agent.md +136 -0
- package/content/agents/agent-properties.md +174 -0
- package/content/agents/agent-server-hooks.md +336 -0
- package/content/agents/agentchat.md +515 -0
- package/content/agents/agentconversations.md +148 -0
- package/content/concepts/ai-agent-docs.md +190 -0
- package/content/concepts/cli.md +213 -0
- package/content/concepts/connections-and-requests.md +7 -0
- package/content/concepts/custom-html.md +3 -0
- package/content/concepts/custom-styling.md +161 -0
- package/content/concepts/events-and-actions.md +271 -0
- package/content/concepts/hosting-files.md +18 -0
- package/content/concepts/i18n.md +320 -0
- package/content/concepts/keyboard-shortcuts.md +218 -0
- package/content/concepts/layout-overview.md +478 -0
- package/content/concepts/lists.md +144 -0
- package/content/concepts/logger.md +43 -0
- package/content/concepts/lowdefy-schema.md +365 -0
- package/content/concepts/menus.md +144 -0
- package/content/concepts/module-authoring.md +564 -0
- package/content/concepts/modules.md +338 -0
- package/content/concepts/operators.md +45 -0
- package/content/concepts/overview.md +19 -0
- package/content/concepts/references-and-templates.md +207 -0
- package/content/concepts/secrets.md +24 -0
- package/content/concepts/selectors.md +143 -0
- package/content/connections/amazonredshift.md +176 -0
- package/content/connections/anthropic.md +232 -0
- package/content/connections/awss3.md +313 -0
- package/content/connections/azureblobstorage.md +133 -0
- package/content/connections/elasticsearch.md +371 -0
- package/content/connections/google.md +228 -0
- package/content/connections/googlecloudstorage.md +139 -0
- package/content/connections/googlesheet.md +313 -0
- package/content/connections/knex.md +206 -0
- package/content/connections/mariadb.md +177 -0
- package/content/connections/mcp.md +134 -0
- package/content/connections/mongodb.md +739 -0
- package/content/connections/mssql.md +191 -0
- package/content/connections/mysql.md +192 -0
- package/content/connections/openai-connection.md +228 -0
- package/content/connections/postgresql.md +200 -0
- package/content/connections/redis.md +116 -0
- package/content/connections/sendgridmail.md +94 -0
- package/content/connections/smtp.md +149 -0
- package/content/connections/sqlite.md +187 -0
- package/content/connections/stripe.md +115 -0
- package/content/container-blocks/affix.md +413 -0
- package/content/container-blocks/alert.md +937 -0
- package/content/container-blocks/badge.md +1222 -0
- package/content/container-blocks/box.md +1453 -0
- package/content/container-blocks/card.md +1200 -0
- package/content/container-blocks/carousel.md +2247 -0
- package/content/container-blocks/collapse.md +1335 -0
- package/content/container-blocks/configprovider.md +1070 -0
- package/content/container-blocks/confirmmodal.md +1159 -0
- package/content/container-blocks/content.md +597 -0
- package/content/container-blocks/descriptions.md +870 -0
- package/content/container-blocks/drawer.md +1379 -0
- package/content/container-blocks/dropdownmenu.md +643 -0
- package/content/container-blocks/flex.md +1510 -0
- package/content/container-blocks/footer.md +380 -0
- package/content/container-blocks/googlemaps.md +546 -0
- package/content/container-blocks/googlemapsheatmap.md +607 -0
- package/content/container-blocks/googlemapsscript.md +61 -0
- package/content/container-blocks/header.md +302 -0
- package/content/container-blocks/label.md +739 -0
- package/content/container-blocks/layout.md +604 -0
- package/content/container-blocks/masonry.md +1090 -0
- package/content/container-blocks/mobilemenu.md +1244 -0
- package/content/container-blocks/modal.md +1180 -0
- package/content/container-blocks/pageheadermenu.md +614 -0
- package/content/container-blocks/pagesidebarlayout.md +438 -0
- package/content/container-blocks/pagesidermenu.md +651 -0
- package/content/container-blocks/popover.md +1421 -0
- package/content/container-blocks/result.md +972 -0
- package/content/container-blocks/sider.md +1064 -0
- package/content/container-blocks/span.md +747 -0
- package/content/container-blocks/spinner.md +267 -0
- package/content/container-blocks/splitter.md +1735 -0
- package/content/container-blocks/tabs.md +1718 -0
- package/content/container-blocks/tooltip.md +1274 -0
- package/content/container-blocks/watermark.md +515 -0
- package/content/controls/for.md +103 -0
- package/content/controls/if.md +107 -0
- package/content/controls/log.md +50 -0
- package/content/controls/parallel.md +71 -0
- package/content/controls/parallel_for.md +36 -0
- package/content/controls/reject.md +56 -0
- package/content/controls/return.md +66 -0
- package/content/controls/set_state.md +98 -0
- package/content/controls/switch.md +90 -0
- package/content/controls/throw.md +79 -0
- package/content/controls/try.md +88 -0
- package/content/deployment/docker.md +149 -0
- package/content/deployment/node-server.md +27 -0
- package/content/deployment/vercel.md +101 -0
- package/content/display-blocks/aggrid.md +1459 -0
- package/content/display-blocks/anchor.md +336 -0
- package/content/display-blocks/avatar.md +1154 -0
- package/content/display-blocks/breadcrumb.md +517 -0
- package/content/display-blocks/button.md +758 -0
- package/content/display-blocks/calendar.md +156 -0
- package/content/display-blocks/dangeroushtml.md +314 -0
- package/content/display-blocks/dangerousmarkdown.md +423 -0
- package/content/display-blocks/diffgit.md +44 -0
- package/content/display-blocks/difflist.md +225 -0
- package/content/display-blocks/diffsidebyside.md +56 -0
- package/content/display-blocks/difftimeline.md +94 -0
- package/content/display-blocks/divider.md +406 -0
- package/content/display-blocks/download.md +60 -0
- package/content/display-blocks/dropdownbutton.md +661 -0
- package/content/display-blocks/echart.md +418 -0
- package/content/display-blocks/floatbutton.md +545 -0
- package/content/display-blocks/html.md +311 -0
- package/content/display-blocks/icon.md +717 -0
- package/content/display-blocks/img.md +479 -0
- package/content/display-blocks/markdown.md +520 -0
- package/content/display-blocks/markdownwithcode.md +730 -0
- package/content/display-blocks/menu.md +1123 -0
- package/content/display-blocks/message.md +941 -0
- package/content/display-blocks/notification.md +1410 -0
- package/content/display-blocks/paragraph.md +643 -0
- package/content/display-blocks/progress.md +818 -0
- package/content/display-blocks/qrcode.md +519 -0
- package/content/display-blocks/s3download.md +240 -0
- package/content/display-blocks/search.md +360 -0
- package/content/display-blocks/skeleton.md +272 -0
- package/content/display-blocks/skeletonavatar.md +222 -0
- package/content/display-blocks/skeletonbutton.md +245 -0
- package/content/display-blocks/skeletoninput.md +223 -0
- package/content/display-blocks/skeletonparagraph.md +201 -0
- package/content/display-blocks/statistic.md +485 -0
- package/content/display-blocks/steps.md +585 -0
- package/content/display-blocks/tag.md +620 -0
- package/content/display-blocks/title.md +654 -0
- package/content/display-blocks/tour.md +2359 -0
- package/content/input-blocks/autocomplete.md +786 -0
- package/content/input-blocks/buttonselector.md +964 -0
- package/content/input-blocks/checkboxselector.md +765 -0
- package/content/input-blocks/checkboxswitch.md +497 -0
- package/content/input-blocks/colorselector.md +884 -0
- package/content/input-blocks/daterangeselector.md +777 -0
- package/content/input-blocks/dateselector.md +693 -0
- package/content/input-blocks/datetimeselector.md +791 -0
- package/content/input-blocks/inputgallery.md +528 -0
- package/content/input-blocks/monthselector.md +717 -0
- package/content/input-blocks/multipleselector.md +1337 -0
- package/content/input-blocks/numberinput.md +855 -0
- package/content/input-blocks/pagination.md +679 -0
- package/content/input-blocks/paragraphinput.md +1664 -0
- package/content/input-blocks/passwordinput.md +480 -0
- package/content/input-blocks/phonenumberinput.md +688 -0
- package/content/input-blocks/radioselector.md +820 -0
- package/content/input-blocks/ratingslider.md +684 -0
- package/content/input-blocks/s3uploadbutton.md +384 -0
- package/content/input-blocks/s3uploaddragger.md +305 -0
- package/content/input-blocks/s3uploadphoto.md +288 -0
- package/content/input-blocks/segmentedselector.md +782 -0
- package/content/input-blocks/selector.md +1162 -0
- package/content/input-blocks/switch.md +552 -0
- package/content/input-blocks/textarea.md +714 -0
- package/content/input-blocks/textinput.md +639 -0
- package/content/input-blocks/tiptapinput.md +226 -0
- package/content/input-blocks/tiptapmentioninput.md +471 -0
- package/content/input-blocks/titleinput.md +1094 -0
- package/content/input-blocks/treeinput.md +144 -0
- package/content/input-blocks/treemultipleselector.md +162 -0
- package/content/input-blocks/treeselector.md +185 -0
- package/content/input-blocks/upload.md +149 -0
- package/content/input-blocks/uploaddragger.md +85 -0
- package/content/input-blocks/uploadphoto.md +84 -0
- package/content/input-blocks/weekselector.md +630 -0
- package/content/list-blocks/controlledlist.md +498 -0
- package/content/list-blocks/list.md +529 -0
- package/content/list-blocks/listselector.md +301 -0
- package/content/list-blocks/masonrylist.md +230 -0
- package/content/migration/upgrade-guide.md +106 -0
- package/content/migration/v4-to-v5.md +589 -0
- package/content/migration/v5-to-v6.md +36 -0
- package/content/operators/_actions.md +58 -0
- package/content/operators/_and.md +76 -0
- package/content/operators/_api.md +254 -0
- package/content/operators/_app.md +114 -0
- package/content/operators/_args.md +65 -0
- package/content/operators/_array.md +331 -0
- package/content/operators/_base64.md +49 -0
- package/content/operators/_boolean.md +33 -0
- package/content/operators/_build.md +166 -0
- package/content/operators/_change_case.md +357 -0
- package/content/operators/_date.md +415 -0
- package/content/operators/_dayjs.md +128 -0
- package/content/operators/_diff.md +61 -0
- package/content/operators/_divide.md +32 -0
- package/content/operators/_eq.md +52 -0
- package/content/operators/_event.md +86 -0
- package/content/operators/_function.md +52 -0
- package/content/operators/_get.md +92 -0
- package/content/operators/_global.md +86 -0
- package/content/operators/_gt.md +50 -0
- package/content/operators/_gte.md +50 -0
- package/content/operators/_hash.md +112 -0
- package/content/operators/_if.md +30 -0
- package/content/operators/_if_none.md +47 -0
- package/content/operators/_index.md +48 -0
- package/content/operators/_input.md +86 -0
- package/content/operators/_intl.md +135 -0
- package/content/operators/_item.md +166 -0
- package/content/operators/_js.md +113 -0
- package/content/operators/_json.md +120 -0
- package/content/operators/_jsonata.md +152 -0
- package/content/operators/_locale.md +65 -0
- package/content/operators/_location.md +40 -0
- package/content/operators/_log.md +22 -0
- package/content/operators/_lt.md +50 -0
- package/content/operators/_lte.md +50 -0
- package/content/operators/_math.md +407 -0
- package/content/operators/_media.md +83 -0
- package/content/operators/_menu.md +62 -0
- package/content/operators/_module.md +340 -0
- package/content/operators/_mql.md +95 -0
- package/content/operators/_ne.md +62 -0
- package/content/operators/_not.md +33 -0
- package/content/operators/_number.md +159 -0
- package/content/operators/_nunjucks.md +117 -0
- package/content/operators/_object.md +253 -0
- package/content/operators/_operator.md +33 -0
- package/content/operators/_or.md +67 -0
- package/content/operators/_product.md +45 -0
- package/content/operators/_random.md +90 -0
- package/content/operators/_ref.md +80 -0
- package/content/operators/_regex.md +69 -0
- package/content/operators/_request.md +35 -0
- package/content/operators/_request_details.md +29 -0
- package/content/operators/_secret.md +56 -0
- package/content/operators/_state.md +134 -0
- package/content/operators/_step.md +98 -0
- package/content/operators/_string.md +327 -0
- package/content/operators/_subtract.md +24 -0
- package/content/operators/_sum.md +45 -0
- package/content/operators/_switch.md +37 -0
- package/content/operators/_t.md +96 -0
- package/content/operators/_theme.md +65 -0
- package/content/operators/_type.md +78 -0
- package/content/operators/_uri.md +49 -0
- package/content/operators/_url_query.md +92 -0
- package/content/operators/_user.md +154 -0
- package/content/operators/_uuid.md +118 -0
- package/content/operators/_var.md +88 -0
- package/content/operators/_yaml.md +96 -0
- package/content/other/introduction.md +39 -0
- package/content/other/next-auth-providers.md +3 -0
- package/content/other/updatesession.md +26 -0
- package/content/plugins/plugins-actions.md +80 -0
- package/content/plugins/plugins-connections.md +98 -0
- package/content/plugins/plugins-dev.md +138 -0
- package/content/plugins/plugins-introduction.md +29 -0
- package/content/plugins/plugins-operators.md +71 -0
- package/content/testing/e2e-auth.md +108 -0
- package/content/testing/e2e-configuration.md +107 -0
- package/content/testing/e2e-getting-started.md +96 -0
- package/content/testing/e2e-introduction.md +53 -0
- package/content/testing/e2e-mocking.md +155 -0
- package/content/testing/e2e-writing-tests.md +214 -0
- package/content/tutorial/tutorial-actions-operators.md +222 -0
- package/content/tutorial/tutorial-add-blocks.md +86 -0
- package/content/tutorial/tutorial-create-page.md +57 -0
- package/content/tutorial/tutorial-display-data-page.md +181 -0
- package/content/tutorial/tutorial-next-steps.md +53 -0
- package/content/tutorial/tutorial-requests-sql.md +22 -0
- package/content/tutorial/tutorial-start.md +71 -0
- package/content/user-authentication/auth-providers.md +15 -0
- package/content/user-authentication/login-and-logout.md +122 -0
- package/content/user-authentication/users-introduction.md +31 -0
- package/index.json +2281 -0
- package/package.json +34 -0
- package/scripts/extractAgentDocs.js +130 -0
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
# Layout
|
|
2
|
+
|
|
3
|
+
Ant Design layout container for structuring page sections.
|
|
4
|
+
|
|
5
|
+
This is the main content area. The Layout block wraps Header, Content, and Footer to create a standard page structure.
|
|
6
|
+
|
|
7
|
+
Footer - Copyright 2026
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
- id: layout_basic
|
|
11
|
+
type: Layout
|
|
12
|
+
style:
|
|
13
|
+
minHeight: 300px
|
|
14
|
+
blocks:
|
|
15
|
+
- id: layout_basic_header
|
|
16
|
+
type: Header
|
|
17
|
+
style:
|
|
18
|
+
paddingInline: 24px
|
|
19
|
+
borderBottom: 1px solid var(--ant-color-border)
|
|
20
|
+
blocks:
|
|
21
|
+
- id: layout_basic_header_text
|
|
22
|
+
type: Html
|
|
23
|
+
properties:
|
|
24
|
+
html: <span class="text-base font-semibold">Header</span>
|
|
25
|
+
- id: layout_basic_content
|
|
26
|
+
type: Content
|
|
27
|
+
style:
|
|
28
|
+
padding: 24px
|
|
29
|
+
background: var(--ant-color-bg-container)
|
|
30
|
+
blocks:
|
|
31
|
+
- id: layout_basic_content_text
|
|
32
|
+
type: Paragraph
|
|
33
|
+
properties:
|
|
34
|
+
content: This is the main content area. The Layout block wraps Header, Content,
|
|
35
|
+
and Footer to create a standard page structure.
|
|
36
|
+
- id: layout_basic_footer
|
|
37
|
+
type: Footer
|
|
38
|
+
style:
|
|
39
|
+
textAlign: center
|
|
40
|
+
blocks:
|
|
41
|
+
- id: layout_basic_footer_text
|
|
42
|
+
type: Paragraph
|
|
43
|
+
properties:
|
|
44
|
+
content: Footer - Copyright 2026
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Layout blocks compose together to create complex page structures. Here, an outer Layout wraps a Header, and an inner Layout contains a Sider and Content side by side.
|
|
48
|
+
|
|
49
|
+
Footer
|
|
50
|
+
|
|
51
|
+
```yaml
|
|
52
|
+
- id: layout_sider_outer
|
|
53
|
+
type: Layout
|
|
54
|
+
style:
|
|
55
|
+
minHeight: 350px
|
|
56
|
+
blocks:
|
|
57
|
+
- id: layout_sider_header
|
|
58
|
+
type: Header
|
|
59
|
+
style:
|
|
60
|
+
paddingInline: 24px
|
|
61
|
+
borderBottom: 1px solid var(--ant-color-border)
|
|
62
|
+
blocks:
|
|
63
|
+
- id: layout_sider_header_text
|
|
64
|
+
type: Html
|
|
65
|
+
properties:
|
|
66
|
+
html: <span class="text-base font-semibold">Header</span>
|
|
67
|
+
- id: layout_sider_inner
|
|
68
|
+
type: Layout
|
|
69
|
+
properties:
|
|
70
|
+
hasSider: true
|
|
71
|
+
blocks:
|
|
72
|
+
- id: layout_sider_side
|
|
73
|
+
type: Sider
|
|
74
|
+
layout:
|
|
75
|
+
flex: 0 0 auto
|
|
76
|
+
properties:
|
|
77
|
+
theme: light
|
|
78
|
+
width: 200
|
|
79
|
+
blocks:
|
|
80
|
+
- id: layout_sider_side_menu
|
|
81
|
+
type: Menu
|
|
82
|
+
properties:
|
|
83
|
+
mode: inline
|
|
84
|
+
theme: light
|
|
85
|
+
links:
|
|
86
|
+
- id: layout_sider_nav_1
|
|
87
|
+
type: MenuLink
|
|
88
|
+
properties:
|
|
89
|
+
title: Dashboard
|
|
90
|
+
icon: AiOutlineDashboard
|
|
91
|
+
- id: layout_sider_nav_2
|
|
92
|
+
type: MenuLink
|
|
93
|
+
properties:
|
|
94
|
+
title: Settings
|
|
95
|
+
icon: AiOutlineSetting
|
|
96
|
+
- id: layout_sider_content
|
|
97
|
+
type: Content
|
|
98
|
+
layout:
|
|
99
|
+
flex: 1 1 auto
|
|
100
|
+
style:
|
|
101
|
+
padding: 24px
|
|
102
|
+
background: var(--ant-color-bg-container)
|
|
103
|
+
blocks:
|
|
104
|
+
- id: layout_sider_content_text
|
|
105
|
+
type: Paragraph
|
|
106
|
+
properties:
|
|
107
|
+
content: Layout blocks compose together to create complex page structures. Here,
|
|
108
|
+
an outer Layout wraps a Header, and an inner Layout contains a
|
|
109
|
+
Sider and Content side by side.
|
|
110
|
+
- id: layout_sider_footer
|
|
111
|
+
type: Footer
|
|
112
|
+
style:
|
|
113
|
+
textAlign: center
|
|
114
|
+
blocks:
|
|
115
|
+
- id: layout_sider_footer_text
|
|
116
|
+
type: Paragraph
|
|
117
|
+
properties:
|
|
118
|
+
content: Footer
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Main content area with a right-side panel. The Sider is placed after Content to render on the right.
|
|
122
|
+
|
|
123
|
+
Right side panel for supplementary content, filters, or navigation.
|
|
124
|
+
|
|
125
|
+
```yaml
|
|
126
|
+
- id: layout_right_sider_outer
|
|
127
|
+
type: Layout
|
|
128
|
+
style:
|
|
129
|
+
minHeight: 300px
|
|
130
|
+
blocks:
|
|
131
|
+
- id: layout_right_sider_inner
|
|
132
|
+
type: Layout
|
|
133
|
+
properties:
|
|
134
|
+
hasSider: true
|
|
135
|
+
blocks:
|
|
136
|
+
- id: layout_right_sider_content
|
|
137
|
+
type: Content
|
|
138
|
+
layout:
|
|
139
|
+
flex: 1 1 auto
|
|
140
|
+
style:
|
|
141
|
+
padding: 24px
|
|
142
|
+
background: var(--ant-color-bg-container)
|
|
143
|
+
blocks:
|
|
144
|
+
- id: layout_right_sider_content_text
|
|
145
|
+
type: Paragraph
|
|
146
|
+
properties:
|
|
147
|
+
content: Main content area with a right-side panel. The Sider is placed after
|
|
148
|
+
Content to render on the right.
|
|
149
|
+
- id: layout_right_sider_side
|
|
150
|
+
type: Sider
|
|
151
|
+
layout:
|
|
152
|
+
flex: 0 0 auto
|
|
153
|
+
properties:
|
|
154
|
+
theme: light
|
|
155
|
+
width: 250
|
|
156
|
+
reverseArrow: true
|
|
157
|
+
style:
|
|
158
|
+
borderLeft: 1px solid
|
|
159
|
+
blocks:
|
|
160
|
+
- id: layout_right_sider_side_text
|
|
161
|
+
type: Paragraph
|
|
162
|
+
style:
|
|
163
|
+
padding: 16px
|
|
164
|
+
properties:
|
|
165
|
+
content: Right side panel for supplementary content, filters, or navigation.
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Sider with custom background color set via the siderBg token. The trigger bar uses triggerBg and triggerColor tokens.
|
|
169
|
+
|
|
170
|
+
The Layout theme property accepts antd design tokens like headerBg, footerBg, siderBg, bodyBg, triggerBg, triggerColor, and triggerHeight. These cascade to child Header, Footer, Sider, and Content blocks.
|
|
171
|
+
|
|
172
|
+
Footer styled with footerBg token
|
|
173
|
+
|
|
174
|
+
```yaml
|
|
175
|
+
- id: layout_theme_outer
|
|
176
|
+
type: Layout
|
|
177
|
+
style:
|
|
178
|
+
minHeight: 280px
|
|
179
|
+
properties:
|
|
180
|
+
theme:
|
|
181
|
+
headerBg: "#1d39c4"
|
|
182
|
+
triggerBg: "#597ef7"
|
|
183
|
+
triggerColor: "#ffffff"
|
|
184
|
+
triggerHeight: 48
|
|
185
|
+
blocks:
|
|
186
|
+
- id: layout_theme_header
|
|
187
|
+
type: Header
|
|
188
|
+
style:
|
|
189
|
+
paddingInline: 24px
|
|
190
|
+
blocks:
|
|
191
|
+
- id: layout_theme_header_text
|
|
192
|
+
type: Html
|
|
193
|
+
properties:
|
|
194
|
+
html: <span class="text-base font-semibold">Custom themed header via Layout
|
|
195
|
+
design tokens</span>
|
|
196
|
+
- id: layout_theme_inner
|
|
197
|
+
type: Layout
|
|
198
|
+
properties:
|
|
199
|
+
hasSider: true
|
|
200
|
+
blocks:
|
|
201
|
+
- id: layout_theme_sider
|
|
202
|
+
type: Sider
|
|
203
|
+
layout:
|
|
204
|
+
flex: 0 0 auto
|
|
205
|
+
properties:
|
|
206
|
+
theme: light
|
|
207
|
+
width: 180
|
|
208
|
+
blocks:
|
|
209
|
+
- id: layout_theme_sider_text
|
|
210
|
+
type: Paragraph
|
|
211
|
+
style:
|
|
212
|
+
padding: 16px
|
|
213
|
+
properties:
|
|
214
|
+
content: Sider with custom background color set via the siderBg token. The
|
|
215
|
+
trigger bar uses triggerBg and triggerColor tokens.
|
|
216
|
+
- id: layout_theme_content
|
|
217
|
+
type: Content
|
|
218
|
+
layout:
|
|
219
|
+
flex: 1 1 auto
|
|
220
|
+
style:
|
|
221
|
+
padding: 24px
|
|
222
|
+
blocks:
|
|
223
|
+
- id: layout_theme_content_text
|
|
224
|
+
type: Paragraph
|
|
225
|
+
properties:
|
|
226
|
+
content: The Layout theme property accepts antd design tokens like headerBg,
|
|
227
|
+
footerBg, siderBg, bodyBg, triggerBg, triggerColor, and
|
|
228
|
+
triggerHeight. These cascade to child Header, Footer, Sider,
|
|
229
|
+
and Content blocks.
|
|
230
|
+
- id: layout_theme_footer
|
|
231
|
+
type: Footer
|
|
232
|
+
style:
|
|
233
|
+
textAlign: center
|
|
234
|
+
blocks:
|
|
235
|
+
- id: layout_theme_footer_text
|
|
236
|
+
type: Paragraph
|
|
237
|
+
properties:
|
|
238
|
+
content: Footer styled with footerBg token
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
The Layout block has a single cssKey called "element". Use the class property to apply Tailwind utility classes directly to the Layout wrapper. Here the outer Layout uses rounded corners, shadow, and a border. Child blocks like Header, Content, and Footer can each have their own class applied.
|
|
242
|
+
|
|
243
|
+
Footer with Tailwind background
|
|
244
|
+
|
|
245
|
+
```yaml
|
|
246
|
+
- id: layout_tailwind_outer
|
|
247
|
+
type: Layout
|
|
248
|
+
class: rounded-lg overflow-hidden shadow-lg border border-border
|
|
249
|
+
style:
|
|
250
|
+
minHeight: 280px
|
|
251
|
+
blocks:
|
|
252
|
+
- id: layout_tailwind_header
|
|
253
|
+
type: Header
|
|
254
|
+
properties:
|
|
255
|
+
color: "#4338ca"
|
|
256
|
+
style:
|
|
257
|
+
paddingInline: 24px
|
|
258
|
+
color: white
|
|
259
|
+
blocks:
|
|
260
|
+
- id: layout_tailwind_header_text
|
|
261
|
+
type: Html
|
|
262
|
+
properties:
|
|
263
|
+
html: <span class="text-white text-base font-semibold">Tailwind-styled
|
|
264
|
+
Layout</span>
|
|
265
|
+
- id: layout_tailwind_content
|
|
266
|
+
type: Content
|
|
267
|
+
class:
|
|
268
|
+
.element: bg-bg-layout
|
|
269
|
+
style:
|
|
270
|
+
padding: 24px
|
|
271
|
+
blocks:
|
|
272
|
+
- id: layout_tailwind_content_text
|
|
273
|
+
type: Paragraph
|
|
274
|
+
properties:
|
|
275
|
+
content: The Layout block has a single cssKey called "element". Use the class
|
|
276
|
+
property to apply Tailwind utility classes directly to the Layout
|
|
277
|
+
wrapper. Here the outer Layout uses rounded corners, shadow, and a
|
|
278
|
+
border. Child blocks like Header, Content, and Footer can each
|
|
279
|
+
have their own class applied.
|
|
280
|
+
- id: layout_tailwind_footer
|
|
281
|
+
type: Footer
|
|
282
|
+
class:
|
|
283
|
+
.element: bg-bg-layout text-center
|
|
284
|
+
blocks:
|
|
285
|
+
- id: layout_tailwind_footer_text
|
|
286
|
+
type: Paragraph
|
|
287
|
+
properties:
|
|
288
|
+
content: Footer with Tailwind background
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
This is where a data table or chart would display recent order information. The Layout block provides the overall page structure with a dark sidebar, top header, and scrollable content area.
|
|
292
|
+
|
|
293
|
+
Acme Corp Admin Panel - Version 3.2.1
|
|
294
|
+
|
|
295
|
+
```yaml
|
|
296
|
+
- id: layout_admin_outer
|
|
297
|
+
type: Layout
|
|
298
|
+
style:
|
|
299
|
+
minHeight: 450px
|
|
300
|
+
blocks:
|
|
301
|
+
- id: layout_admin_header
|
|
302
|
+
type: Header
|
|
303
|
+
properties:
|
|
304
|
+
notifications:
|
|
305
|
+
count: 5
|
|
306
|
+
profile:
|
|
307
|
+
avatar:
|
|
308
|
+
icon: AiOutlineUser
|
|
309
|
+
style:
|
|
310
|
+
paddingInline: 24px
|
|
311
|
+
borderBottom: 1px solid var(--ant-color-border)
|
|
312
|
+
blocks:
|
|
313
|
+
- id: layout_admin_header_title
|
|
314
|
+
type: Html
|
|
315
|
+
layout:
|
|
316
|
+
flex: 0 0 auto
|
|
317
|
+
properties:
|
|
318
|
+
html: <span class="text-base font-bold">Acme Admin</span>
|
|
319
|
+
- id: layout_admin_inner
|
|
320
|
+
type: Layout
|
|
321
|
+
properties:
|
|
322
|
+
hasSider: true
|
|
323
|
+
blocks:
|
|
324
|
+
- id: layout_admin_sider
|
|
325
|
+
type: Sider
|
|
326
|
+
layout:
|
|
327
|
+
flex: 0 0 auto
|
|
328
|
+
properties:
|
|
329
|
+
theme: dark
|
|
330
|
+
width: 220
|
|
331
|
+
breakpoint: lg
|
|
332
|
+
blocks:
|
|
333
|
+
- id: layout_admin_menu
|
|
334
|
+
type: Menu
|
|
335
|
+
properties:
|
|
336
|
+
mode: inline
|
|
337
|
+
theme: dark
|
|
338
|
+
links:
|
|
339
|
+
- id: layout_admin_menu_dashboard
|
|
340
|
+
type: MenuLink
|
|
341
|
+
properties:
|
|
342
|
+
title: Dashboard
|
|
343
|
+
icon: AiOutlineDashboard
|
|
344
|
+
- id: layout_admin_menu_users
|
|
345
|
+
type: MenuLink
|
|
346
|
+
properties:
|
|
347
|
+
title: Users
|
|
348
|
+
icon: AiOutlineTeam
|
|
349
|
+
- id: layout_admin_menu_orders
|
|
350
|
+
type: MenuLink
|
|
351
|
+
properties:
|
|
352
|
+
title: Orders
|
|
353
|
+
icon: AiOutlineShoppingCart
|
|
354
|
+
- id: layout_admin_menu_reports
|
|
355
|
+
type: MenuLink
|
|
356
|
+
properties:
|
|
357
|
+
title: Reports
|
|
358
|
+
icon: AiOutlineBarChart
|
|
359
|
+
- id: layout_admin_menu_settings
|
|
360
|
+
type: MenuLink
|
|
361
|
+
properties:
|
|
362
|
+
title: Settings
|
|
363
|
+
icon: AiOutlineSetting
|
|
364
|
+
- id: layout_admin_content_area
|
|
365
|
+
type: Content
|
|
366
|
+
layout:
|
|
367
|
+
flex: 1 1 auto
|
|
368
|
+
style:
|
|
369
|
+
padding: 24px
|
|
370
|
+
background: var(--ant-color-bg-layout)
|
|
371
|
+
blocks:
|
|
372
|
+
- id: layout_admin_breadcrumb
|
|
373
|
+
type: Breadcrumb
|
|
374
|
+
properties:
|
|
375
|
+
list:
|
|
376
|
+
- Home
|
|
377
|
+
- Dashboard
|
|
378
|
+
- id: layout_admin_stats_row
|
|
379
|
+
type: Box
|
|
380
|
+
layout:
|
|
381
|
+
gap: 16
|
|
382
|
+
blocks:
|
|
383
|
+
- id: layout_admin_stat_users
|
|
384
|
+
type: Card
|
|
385
|
+
layout:
|
|
386
|
+
flex: 1 1 0
|
|
387
|
+
properties:
|
|
388
|
+
size: small
|
|
389
|
+
blocks:
|
|
390
|
+
- id: layout_admin_stat_users_val
|
|
391
|
+
type: Statistic
|
|
392
|
+
properties:
|
|
393
|
+
title: Total Users
|
|
394
|
+
value: 12480
|
|
395
|
+
- id: layout_admin_stat_orders
|
|
396
|
+
type: Card
|
|
397
|
+
layout:
|
|
398
|
+
flex: 1 1 0
|
|
399
|
+
properties:
|
|
400
|
+
size: small
|
|
401
|
+
blocks:
|
|
402
|
+
- id: layout_admin_stat_orders_val
|
|
403
|
+
type: Statistic
|
|
404
|
+
properties:
|
|
405
|
+
title: Orders Today
|
|
406
|
+
value: 342
|
|
407
|
+
- id: layout_admin_stat_revenue
|
|
408
|
+
type: Card
|
|
409
|
+
layout:
|
|
410
|
+
flex: 1 1 0
|
|
411
|
+
properties:
|
|
412
|
+
size: small
|
|
413
|
+
blocks:
|
|
414
|
+
- id: layout_admin_stat_revenue_val
|
|
415
|
+
type: Statistic
|
|
416
|
+
properties:
|
|
417
|
+
title: Revenue
|
|
418
|
+
value: 58200
|
|
419
|
+
prefix: $
|
|
420
|
+
- id: layout_admin_main_card
|
|
421
|
+
type: Card
|
|
422
|
+
properties:
|
|
423
|
+
title: Recent Orders
|
|
424
|
+
blocks:
|
|
425
|
+
- id: layout_admin_table_placeholder
|
|
426
|
+
type: Paragraph
|
|
427
|
+
properties:
|
|
428
|
+
content: This is where a data table or chart would display recent order
|
|
429
|
+
information. The Layout block provides the overall page
|
|
430
|
+
structure with a dark sidebar, top header, and scrollable
|
|
431
|
+
content area.
|
|
432
|
+
- id: layout_admin_footer
|
|
433
|
+
type: Footer
|
|
434
|
+
style:
|
|
435
|
+
textAlign: center
|
|
436
|
+
blocks:
|
|
437
|
+
- id: layout_admin_footer_text
|
|
438
|
+
type: Paragraph
|
|
439
|
+
properties:
|
|
440
|
+
content: Acme Corp Admin Panel - Version 3.2.1
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
DevDocs
|
|
444
|
+
|
|
445
|
+
Getting Started
|
|
446
|
+
|
|
447
|
+
Introduction
|
|
448
|
+
|
|
449
|
+
Welcome to DevDocs. This guide walks you through setting up your first project. The page uses a Layout with a light-themed Sider for documentation navigation, a white Header with logo and search, and a Content area with comfortable reading width.
|
|
450
|
+
|
|
451
|
+
> Tip
|
|
452
|
+
|
|
453
|
+
```yaml
|
|
454
|
+
- id: layout_docs_outer
|
|
455
|
+
type: Layout
|
|
456
|
+
style:
|
|
457
|
+
minHeight: 450px
|
|
458
|
+
blocks:
|
|
459
|
+
- id: layout_docs_header
|
|
460
|
+
type: Header
|
|
461
|
+
style:
|
|
462
|
+
paddingInline: 24px
|
|
463
|
+
borderBottom: 1px solid var(--ant-color-border)
|
|
464
|
+
background: var(--ant-color-bg-container)
|
|
465
|
+
blocks:
|
|
466
|
+
- id: layout_docs_logo
|
|
467
|
+
type: Title
|
|
468
|
+
layout:
|
|
469
|
+
flex: 0 0 auto
|
|
470
|
+
properties:
|
|
471
|
+
content: DevDocs
|
|
472
|
+
level: 4
|
|
473
|
+
style:
|
|
474
|
+
margin: 0
|
|
475
|
+
- id: layout_docs_version_tag
|
|
476
|
+
type: Tag
|
|
477
|
+
layout:
|
|
478
|
+
flex: 0 0 auto
|
|
479
|
+
properties:
|
|
480
|
+
title: v4.2
|
|
481
|
+
color: blue
|
|
482
|
+
- id: layout_docs_spacer
|
|
483
|
+
type: Box
|
|
484
|
+
layout:
|
|
485
|
+
flex: 1 1 0
|
|
486
|
+
- id: layout_docs_search_btn
|
|
487
|
+
type: Button
|
|
488
|
+
layout:
|
|
489
|
+
flex: 0 0 auto
|
|
490
|
+
properties:
|
|
491
|
+
icon: AiOutlineSearch
|
|
492
|
+
title: Search docs...
|
|
493
|
+
color: default
|
|
494
|
+
variant: outlined
|
|
495
|
+
- id: layout_docs_github_btn
|
|
496
|
+
type: Button
|
|
497
|
+
layout:
|
|
498
|
+
flex: 0 0 auto
|
|
499
|
+
properties:
|
|
500
|
+
icon: AiOutlineGithub
|
|
501
|
+
color: default
|
|
502
|
+
variant: text
|
|
503
|
+
hideTitle: true
|
|
504
|
+
- id: layout_docs_inner
|
|
505
|
+
type: Layout
|
|
506
|
+
properties:
|
|
507
|
+
hasSider: true
|
|
508
|
+
blocks:
|
|
509
|
+
- id: layout_docs_sider
|
|
510
|
+
type: Sider
|
|
511
|
+
layout:
|
|
512
|
+
flex: 0 0 auto
|
|
513
|
+
properties:
|
|
514
|
+
theme: light
|
|
515
|
+
width: 260
|
|
516
|
+
breakpoint: md
|
|
517
|
+
style:
|
|
518
|
+
borderRight: 1px solid
|
|
519
|
+
blocks:
|
|
520
|
+
- id: layout_docs_nav_title
|
|
521
|
+
type: Paragraph
|
|
522
|
+
style:
|
|
523
|
+
padding: 16px 24px 8px
|
|
524
|
+
fontWeight: 600
|
|
525
|
+
properties:
|
|
526
|
+
content: Getting Started
|
|
527
|
+
- id: layout_docs_nav_menu
|
|
528
|
+
type: Menu
|
|
529
|
+
properties:
|
|
530
|
+
mode: inline
|
|
531
|
+
theme: light
|
|
532
|
+
links:
|
|
533
|
+
- id: layout_docs_nav_intro
|
|
534
|
+
type: MenuLink
|
|
535
|
+
properties:
|
|
536
|
+
title: Introduction
|
|
537
|
+
icon: AiOutlineRead
|
|
538
|
+
- id: layout_docs_nav_install
|
|
539
|
+
type: MenuLink
|
|
540
|
+
properties:
|
|
541
|
+
title: Installation
|
|
542
|
+
icon: AiOutlineDownload
|
|
543
|
+
- id: layout_docs_nav_config
|
|
544
|
+
type: MenuLink
|
|
545
|
+
properties:
|
|
546
|
+
title: Configuration
|
|
547
|
+
icon: AiOutlineTool
|
|
548
|
+
- id: layout_docs_nav_deploy
|
|
549
|
+
type: MenuLink
|
|
550
|
+
properties:
|
|
551
|
+
title: Deployment
|
|
552
|
+
icon: AiOutlineCloudUpload
|
|
553
|
+
- id: layout_docs_content_area
|
|
554
|
+
type: Content
|
|
555
|
+
layout:
|
|
556
|
+
flex: 1 1 auto
|
|
557
|
+
style:
|
|
558
|
+
padding: 32px 48px
|
|
559
|
+
background: var(--ant-color-bg-container)
|
|
560
|
+
blocks:
|
|
561
|
+
- id: layout_docs_content_breadcrumb
|
|
562
|
+
type: Breadcrumb
|
|
563
|
+
properties:
|
|
564
|
+
list:
|
|
565
|
+
- Docs
|
|
566
|
+
- Getting Started
|
|
567
|
+
- Introduction
|
|
568
|
+
- id: layout_docs_content_title
|
|
569
|
+
type: Title
|
|
570
|
+
properties:
|
|
571
|
+
content: Introduction
|
|
572
|
+
level: 2
|
|
573
|
+
- id: layout_docs_content_paragraph
|
|
574
|
+
type: Paragraph
|
|
575
|
+
properties:
|
|
576
|
+
content: Welcome to DevDocs. This guide walks you through setting up your first
|
|
577
|
+
project. The page uses a Layout with a light-themed Sider for
|
|
578
|
+
documentation navigation, a white Header with logo and search,
|
|
579
|
+
and a Content area with comfortable reading width.
|
|
580
|
+
- id: layout_docs_content_alert
|
|
581
|
+
type: Alert
|
|
582
|
+
properties:
|
|
583
|
+
type: info
|
|
584
|
+
message: Tip
|
|
585
|
+
description: The Layout block is the top-level structural container. Nest
|
|
586
|
+
Header, Content, Footer, and Sider blocks inside to build any
|
|
587
|
+
page structure.
|
|
588
|
+
showIcon: true
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
| Property | Type | Default | Description |
|
|
592
|
+
| --- | --- | --- | --- |
|
|
593
|
+
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). |
|
|
594
|
+
|
|
595
|
+
No events defined.
|
|
596
|
+
|
|
597
|
+
| Key | Target |
|
|
598
|
+
| --- | --- |
|
|
599
|
+
| `/block` | Outer block wrapper (always available). |
|
|
600
|
+
| `/element` | The Layout element. |
|
|
601
|
+
|
|
602
|
+
| Slot | Description |
|
|
603
|
+
| --- | --- |
|
|
604
|
+
| `content` | Layout child blocks (Header, Sider, Content, Footer). |
|