@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,497 @@
|
|
|
1
|
+
# CheckboxSwitch
|
|
2
|
+
|
|
3
|
+
Single checkbox for boolean input.
|
|
4
|
+
|
|
5
|
+
```yaml
|
|
6
|
+
- id: basic_default
|
|
7
|
+
type: CheckboxSwitch
|
|
8
|
+
properties:
|
|
9
|
+
title: Accept Terms
|
|
10
|
+
- id: basic_with_desc
|
|
11
|
+
type: CheckboxSwitch
|
|
12
|
+
properties:
|
|
13
|
+
title: Notifications
|
|
14
|
+
description: Enable email notifications
|
|
15
|
+
- id: basic_simple
|
|
16
|
+
type: CheckboxSwitch
|
|
17
|
+
properties:
|
|
18
|
+
title: Remember Me
|
|
19
|
+
description: Keep me signed in on this device
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```yaml
|
|
23
|
+
- id: desc_terms
|
|
24
|
+
type: CheckboxSwitch
|
|
25
|
+
properties:
|
|
26
|
+
title: Terms & Conditions
|
|
27
|
+
description: I agree to the Terms of Service and Privacy Policy
|
|
28
|
+
- id: desc_marketing
|
|
29
|
+
type: CheckboxSwitch
|
|
30
|
+
properties:
|
|
31
|
+
title: Marketing
|
|
32
|
+
description: Send me promotional emails and newsletters
|
|
33
|
+
- id: desc_html
|
|
34
|
+
type: CheckboxSwitch
|
|
35
|
+
properties:
|
|
36
|
+
title: Agreement
|
|
37
|
+
description: I accept the <b>Terms</b> and <i>Privacy Policy</i>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```yaml
|
|
41
|
+
- id: label_default
|
|
42
|
+
type: CheckboxSwitch
|
|
43
|
+
properties:
|
|
44
|
+
title: Enable Notifications
|
|
45
|
+
description: Receive updates via email
|
|
46
|
+
- id: label_colon
|
|
47
|
+
type: CheckboxSwitch
|
|
48
|
+
properties:
|
|
49
|
+
title: Auto-save
|
|
50
|
+
description: Save changes automatically
|
|
51
|
+
label:
|
|
52
|
+
colon: true
|
|
53
|
+
- id: label_no_colon
|
|
54
|
+
type: CheckboxSwitch
|
|
55
|
+
properties:
|
|
56
|
+
title: Status
|
|
57
|
+
description: Set active status
|
|
58
|
+
label:
|
|
59
|
+
colon: false
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
```yaml
|
|
63
|
+
- id: inline_basic
|
|
64
|
+
type: CheckboxSwitch
|
|
65
|
+
properties:
|
|
66
|
+
title: Dark mode
|
|
67
|
+
description: Enable dark theme
|
|
68
|
+
label:
|
|
69
|
+
inline: true
|
|
70
|
+
span: 8
|
|
71
|
+
- id: inline_right
|
|
72
|
+
type: CheckboxSwitch
|
|
73
|
+
properties:
|
|
74
|
+
title: Auto-save
|
|
75
|
+
description: Save changes automatically
|
|
76
|
+
label:
|
|
77
|
+
inline: true
|
|
78
|
+
span: 8
|
|
79
|
+
align: right
|
|
80
|
+
- id: inline_wide_span
|
|
81
|
+
type: CheckboxSwitch
|
|
82
|
+
properties:
|
|
83
|
+
title: Enable feature
|
|
84
|
+
description: Activate the new experimental feature
|
|
85
|
+
label:
|
|
86
|
+
inline: true
|
|
87
|
+
span: 12
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
```yaml
|
|
91
|
+
- id: extra_basic
|
|
92
|
+
type: CheckboxSwitch
|
|
93
|
+
properties:
|
|
94
|
+
title: Notifications
|
|
95
|
+
description: Enable push notifications
|
|
96
|
+
label:
|
|
97
|
+
extra: Push notifications will be sent to your registered device.
|
|
98
|
+
- id: extra_html
|
|
99
|
+
type: CheckboxSwitch
|
|
100
|
+
properties:
|
|
101
|
+
title: Terms
|
|
102
|
+
description: I agree to the terms
|
|
103
|
+
label:
|
|
104
|
+
extra: Read the full <b>Terms of Service</b> before agreeing.
|
|
105
|
+
- id: extra_inline
|
|
106
|
+
type: CheckboxSwitch
|
|
107
|
+
properties:
|
|
108
|
+
title: Marketing Emails
|
|
109
|
+
description: Receive promotional content
|
|
110
|
+
label:
|
|
111
|
+
inline: true
|
|
112
|
+
span: 10
|
|
113
|
+
extra: You can unsubscribe at any time from your account settings.
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
```yaml
|
|
117
|
+
- id: feedback_on
|
|
118
|
+
type: CheckboxSwitch
|
|
119
|
+
properties:
|
|
120
|
+
title: With Feedback
|
|
121
|
+
description: This checkbox shows validation feedback
|
|
122
|
+
label:
|
|
123
|
+
hasFeedback: true
|
|
124
|
+
- id: feedback_off
|
|
125
|
+
type: CheckboxSwitch
|
|
126
|
+
properties:
|
|
127
|
+
title: Without Feedback
|
|
128
|
+
description: Validation feedback is hidden
|
|
129
|
+
label:
|
|
130
|
+
hasFeedback: false
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
```yaml
|
|
134
|
+
- id: disabled_unchecked
|
|
135
|
+
type: CheckboxSwitch
|
|
136
|
+
properties:
|
|
137
|
+
title: Disabled (Unchecked)
|
|
138
|
+
description: This checkbox is disabled
|
|
139
|
+
disabled: true
|
|
140
|
+
label:
|
|
141
|
+
disabled: true
|
|
142
|
+
- id: disabled_with_label
|
|
143
|
+
type: CheckboxSwitch
|
|
144
|
+
properties:
|
|
145
|
+
title: Disabled with Label
|
|
146
|
+
description: Cannot be toggled
|
|
147
|
+
disabled: true
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
```yaml
|
|
151
|
+
- id: color_green
|
|
152
|
+
type: CheckboxSwitch
|
|
153
|
+
properties:
|
|
154
|
+
title: Green
|
|
155
|
+
description: Success color checkbox
|
|
156
|
+
color: "#52c41a"
|
|
157
|
+
label:
|
|
158
|
+
disabled: true
|
|
159
|
+
- id: color_orange
|
|
160
|
+
type: CheckboxSwitch
|
|
161
|
+
properties:
|
|
162
|
+
title: Orange
|
|
163
|
+
description: Warning color checkbox
|
|
164
|
+
color: "#fa8c16"
|
|
165
|
+
label:
|
|
166
|
+
disabled: true
|
|
167
|
+
- id: color_purple
|
|
168
|
+
type: CheckboxSwitch
|
|
169
|
+
properties:
|
|
170
|
+
title: Purple
|
|
171
|
+
description: Custom purple checkbox
|
|
172
|
+
color: "#722ed1"
|
|
173
|
+
label:
|
|
174
|
+
disabled: true
|
|
175
|
+
- id: color_red
|
|
176
|
+
type: CheckboxSwitch
|
|
177
|
+
properties:
|
|
178
|
+
title: Red
|
|
179
|
+
description: Danger color checkbox
|
|
180
|
+
color: "#f5222d"
|
|
181
|
+
label:
|
|
182
|
+
disabled: true
|
|
183
|
+
- id: color_cyan
|
|
184
|
+
type: CheckboxSwitch
|
|
185
|
+
properties:
|
|
186
|
+
title: Cyan
|
|
187
|
+
description: Info color checkbox
|
|
188
|
+
color: "#13c2c2"
|
|
189
|
+
label:
|
|
190
|
+
disabled: true
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
```yaml
|
|
194
|
+
- id: no_label_desc
|
|
195
|
+
type: CheckboxSwitch
|
|
196
|
+
properties:
|
|
197
|
+
description: Accept cookies for a better browsing experience
|
|
198
|
+
label:
|
|
199
|
+
disabled: true
|
|
200
|
+
- id: no_label_plain
|
|
201
|
+
type: CheckboxSwitch
|
|
202
|
+
properties:
|
|
203
|
+
label:
|
|
204
|
+
disabled: true
|
|
205
|
+
- id: no_label_html
|
|
206
|
+
type: CheckboxSwitch
|
|
207
|
+
properties:
|
|
208
|
+
description: I agree to the <b>Community Guidelines</b> and <i>Code of Conduct</i>
|
|
209
|
+
label:
|
|
210
|
+
disabled: true
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
```yaml
|
|
214
|
+
- id: style_background
|
|
215
|
+
type: CheckboxSwitch
|
|
216
|
+
style:
|
|
217
|
+
.element:
|
|
218
|
+
padding: 12px
|
|
219
|
+
borderRadius: 8px
|
|
220
|
+
border: "1px solid #b7eb8f"
|
|
221
|
+
properties:
|
|
222
|
+
title: Styled Background
|
|
223
|
+
description: Checkbox with a custom background style
|
|
224
|
+
label:
|
|
225
|
+
disabled: true
|
|
226
|
+
- id: style_warning_bg
|
|
227
|
+
type: CheckboxSwitch
|
|
228
|
+
style:
|
|
229
|
+
.element:
|
|
230
|
+
padding: 10px
|
|
231
|
+
borderRadius: 6px
|
|
232
|
+
border: "1px solid #ffd591"
|
|
233
|
+
properties:
|
|
234
|
+
title: Warning Style
|
|
235
|
+
description: Styled with a warning background
|
|
236
|
+
label:
|
|
237
|
+
disabled: true
|
|
238
|
+
- id: style_bold_label
|
|
239
|
+
type: CheckboxSwitch
|
|
240
|
+
style:
|
|
241
|
+
.label:
|
|
242
|
+
fontWeight: bold
|
|
243
|
+
color: "#1677ff"
|
|
244
|
+
properties:
|
|
245
|
+
title: Styled Label
|
|
246
|
+
description: Label text is bold and colored
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
```yaml
|
|
250
|
+
- id: class_blue
|
|
251
|
+
type: CheckboxSwitch
|
|
252
|
+
class: p-2 rounded-lg border border-border bg-bg-layout
|
|
253
|
+
properties:
|
|
254
|
+
title: Blue Card
|
|
255
|
+
description: Using Tailwind CSS classes for a blue card style
|
|
256
|
+
label:
|
|
257
|
+
disabled: true
|
|
258
|
+
- id: class_green
|
|
259
|
+
type: CheckboxSwitch
|
|
260
|
+
class: p-3 rounded-xl border border-border bg-bg-layout
|
|
261
|
+
properties:
|
|
262
|
+
title: Green Card
|
|
263
|
+
description: Tailwind green card styling
|
|
264
|
+
label:
|
|
265
|
+
disabled: true
|
|
266
|
+
- id: class_shadow
|
|
267
|
+
type: CheckboxSwitch
|
|
268
|
+
class: p-3 rounded-lg shadow-md bg-bg-container
|
|
269
|
+
properties:
|
|
270
|
+
title: Shadow Card
|
|
271
|
+
description: Elevated card with a box shadow
|
|
272
|
+
label:
|
|
273
|
+
disabled: true
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
```yaml
|
|
277
|
+
- id: theme_large_checkbox
|
|
278
|
+
type: CheckboxSwitch
|
|
279
|
+
properties:
|
|
280
|
+
title: Large Checkbox
|
|
281
|
+
description: Checkbox with increased size via controlInteractiveSize
|
|
282
|
+
label:
|
|
283
|
+
disabled: true
|
|
284
|
+
theme:
|
|
285
|
+
controlInteractiveSize: 24
|
|
286
|
+
- id: theme_circle
|
|
287
|
+
type: CheckboxSwitch
|
|
288
|
+
properties:
|
|
289
|
+
title: Circular Checkbox
|
|
290
|
+
description: Fully rounded checkbox that appears circular
|
|
291
|
+
label:
|
|
292
|
+
disabled: true
|
|
293
|
+
theme:
|
|
294
|
+
controlInteractiveSize: 20
|
|
295
|
+
borderRadiusSM: 10
|
|
296
|
+
- id: theme_custom_colors
|
|
297
|
+
type: CheckboxSwitch
|
|
298
|
+
properties:
|
|
299
|
+
title: Custom Theme Colors
|
|
300
|
+
description: Primary and hover colors overridden via design tokens
|
|
301
|
+
label:
|
|
302
|
+
disabled: true
|
|
303
|
+
theme:
|
|
304
|
+
colorPrimary: "#531dab"
|
|
305
|
+
colorPrimaryHover: "#722ed1"
|
|
306
|
+
- id: theme_bold_border
|
|
307
|
+
type: CheckboxSwitch
|
|
308
|
+
properties:
|
|
309
|
+
title: Bold Border
|
|
310
|
+
description: Checkbox with a thicker border
|
|
311
|
+
label:
|
|
312
|
+
disabled: true
|
|
313
|
+
theme:
|
|
314
|
+
lineWidth: 2
|
|
315
|
+
- id: theme_combined
|
|
316
|
+
type: CheckboxSwitch
|
|
317
|
+
properties:
|
|
318
|
+
title: Combined Tokens
|
|
319
|
+
description: Multiple theme tokens applied together for a unique look
|
|
320
|
+
label:
|
|
321
|
+
disabled: true
|
|
322
|
+
theme:
|
|
323
|
+
controlInteractiveSize: 22
|
|
324
|
+
borderRadiusSM: 6
|
|
325
|
+
colorPrimary: "#08979c"
|
|
326
|
+
colorPrimaryHover: "#13c2c2"
|
|
327
|
+
lineWidth: 2
|
|
328
|
+
colorBorder: "#87e8de"
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
```yaml
|
|
332
|
+
- id: applied_reg_card
|
|
333
|
+
type: Card
|
|
334
|
+
properties:
|
|
335
|
+
title: Create Account
|
|
336
|
+
blocks:
|
|
337
|
+
- id: applied_reg_name
|
|
338
|
+
type: TextInput
|
|
339
|
+
properties:
|
|
340
|
+
title: Full Name
|
|
341
|
+
placeholder: Enter your full name
|
|
342
|
+
- id: applied_reg_email
|
|
343
|
+
type: TextInput
|
|
344
|
+
properties:
|
|
345
|
+
title: Email Address
|
|
346
|
+
placeholder: you@example.com
|
|
347
|
+
- id: applied_reg_terms
|
|
348
|
+
type: CheckboxSwitch
|
|
349
|
+
properties:
|
|
350
|
+
description: I agree to the <b>Terms of Service</b> and <b>Privacy Policy</b>
|
|
351
|
+
label:
|
|
352
|
+
disabled: true
|
|
353
|
+
validate:
|
|
354
|
+
- message: You must accept the terms to continue.
|
|
355
|
+
status: error
|
|
356
|
+
pass:
|
|
357
|
+
_eq:
|
|
358
|
+
- _state: applied_reg_terms
|
|
359
|
+
- true
|
|
360
|
+
- id: applied_reg_marketing
|
|
361
|
+
type: CheckboxSwitch
|
|
362
|
+
properties:
|
|
363
|
+
description: Send me product updates and tips (optional)
|
|
364
|
+
color: "#1677ff"
|
|
365
|
+
label:
|
|
366
|
+
disabled: true
|
|
367
|
+
- id: applied_reg_submit
|
|
368
|
+
type: Button
|
|
369
|
+
properties:
|
|
370
|
+
title: Create Account
|
|
371
|
+
type: primary
|
|
372
|
+
icon: AiOutlineUserAdd
|
|
373
|
+
block: true
|
|
374
|
+
events:
|
|
375
|
+
onClick:
|
|
376
|
+
- id: validate_terms
|
|
377
|
+
type: Validate
|
|
378
|
+
params:
|
|
379
|
+
- applied_reg_terms
|
|
380
|
+
- id: reg_success
|
|
381
|
+
type: DisplayMessage
|
|
382
|
+
params:
|
|
383
|
+
content: Account created successfully!
|
|
384
|
+
status: success
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
```yaml
|
|
388
|
+
- id: applied_notif_card
|
|
389
|
+
type: Card
|
|
390
|
+
properties:
|
|
391
|
+
title: Notification Settings
|
|
392
|
+
blocks:
|
|
393
|
+
- id: applied_notif_email
|
|
394
|
+
type: CheckboxSwitch
|
|
395
|
+
properties:
|
|
396
|
+
title: Email Notifications
|
|
397
|
+
description: Receive order updates and receipts via email
|
|
398
|
+
label:
|
|
399
|
+
inline: true
|
|
400
|
+
span: 16
|
|
401
|
+
events:
|
|
402
|
+
onChange:
|
|
403
|
+
- id: email_changed
|
|
404
|
+
type: SetState
|
|
405
|
+
params:
|
|
406
|
+
emailEnabled:
|
|
407
|
+
_state: applied_notif_email
|
|
408
|
+
- id: applied_notif_sms
|
|
409
|
+
type: CheckboxSwitch
|
|
410
|
+
properties:
|
|
411
|
+
title: SMS Alerts
|
|
412
|
+
description: Get delivery status updates via text message
|
|
413
|
+
label:
|
|
414
|
+
inline: true
|
|
415
|
+
span: 16
|
|
416
|
+
- id: applied_notif_push
|
|
417
|
+
type: CheckboxSwitch
|
|
418
|
+
properties:
|
|
419
|
+
title: Push Notifications
|
|
420
|
+
description: Receive real-time alerts in your browser
|
|
421
|
+
color: "#1677ff"
|
|
422
|
+
label:
|
|
423
|
+
inline: true
|
|
424
|
+
span: 16
|
|
425
|
+
- id: applied_notif_marketing
|
|
426
|
+
type: CheckboxSwitch
|
|
427
|
+
properties:
|
|
428
|
+
title: Marketing Communications
|
|
429
|
+
description: Promotional offers and new feature announcements
|
|
430
|
+
color: "#722ed1"
|
|
431
|
+
label:
|
|
432
|
+
inline: true
|
|
433
|
+
span: 16
|
|
434
|
+
- id: applied_notif_save
|
|
435
|
+
type: Button
|
|
436
|
+
properties:
|
|
437
|
+
title: Save Preferences
|
|
438
|
+
type: primary
|
|
439
|
+
icon: AiOutlineSave
|
|
440
|
+
events:
|
|
441
|
+
onClick:
|
|
442
|
+
- id: save_notif
|
|
443
|
+
type: DisplayMessage
|
|
444
|
+
params:
|
|
445
|
+
content: Notification preferences saved.
|
|
446
|
+
status: success
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
| Property | Type | Default | Description |
|
|
450
|
+
| --- | --- | --- | --- |
|
|
451
|
+
| `color` | string | - | Selected checkbox color. |
|
|
452
|
+
| `disabled` | boolean | `false` | Disable the block if true. |
|
|
453
|
+
| `description` | string | - | Text to display next to the checkbox - supports html. |
|
|
454
|
+
| `label` | object | - | Label properties. |
|
|
455
|
+
| `label.align` | string | `"left"` | Align label left or right when inline. Enum: `left`, `right`. |
|
|
456
|
+
| `label.colon` | boolean | `true` | Append label with colon. |
|
|
457
|
+
| `label.extra` | string | - | Extra text to display beneath the content - supports html. |
|
|
458
|
+
| `label.title` | string | - | Label title - supports html. |
|
|
459
|
+
| `label.tooltip` | string \| object | - | Help tooltip shown via an icon beside the label. A string sets the tooltip text (supports html), or an object to also customize the icon and color. Use the block's onTooltipClick event to respond to clicks on the icon. |
|
|
460
|
+
| `label.tooltip.title` | string | - | Tooltip text shown on hover - supports html. |
|
|
461
|
+
| `label.tooltip.icon` | string | `"AiOutlineQuestionCircle"` | Name of the icon to show beside the label. |
|
|
462
|
+
| `label.tooltip.color` | string | - | Color of the tooltip icon. |
|
|
463
|
+
| `label.span` | number | - | Label inline span. |
|
|
464
|
+
| `label.disabled` | boolean | `false` | Hide input label. |
|
|
465
|
+
| `label.hasFeedback` | boolean | `true` | Display feedback extra from validation, this does not disable validation. |
|
|
466
|
+
| `label.inline` | boolean | `false` | Render input and label inline. |
|
|
467
|
+
| `title` | string | - | Title to describe the input component, if no title is specified the block id is displayed - supports html. |
|
|
468
|
+
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design checkbox tokens](https://ant.design/components/checkbox#design-token). |
|
|
469
|
+
| `theme.colorPrimary` | string | - | Primary color used for the checked state background and border. |
|
|
470
|
+
| `theme.colorPrimaryHover` | string | - | Primary color used when hovering over a checked checkbox. |
|
|
471
|
+
| `theme.colorBgContainer` | string | - | Background color of the unchecked checkbox. |
|
|
472
|
+
| `theme.colorBgContainerDisabled` | string | - | Background color of the checkbox when disabled. |
|
|
473
|
+
| `theme.colorBorder` | string | - | Border color of the unchecked checkbox. |
|
|
474
|
+
| `theme.colorTextDisabled` | string | - | Color of the checkmark and label text when disabled. |
|
|
475
|
+
| `theme.colorWhite` | string | - | Color of the checkmark icon inside the checked checkbox. |
|
|
476
|
+
| `theme.controlInteractiveSize` | number | `16` | Size (width and height) of the checkbox. |
|
|
477
|
+
| `theme.borderRadiusSM` | number | `4` | Border radius of the checkbox. |
|
|
478
|
+
| `theme.lineWidth` | number | `1` | Border width of the checkbox. |
|
|
479
|
+
| `theme.lineWidthBold` | number | `2` | Width of the checkmark stroke inside the checkbox. |
|
|
480
|
+
| `theme.fontSizeLG` | number | `16` | Large font size token, used to derive the indeterminate indicator size. |
|
|
481
|
+
| `theme.paddingXS` | number | `8` | Inline padding between the checkbox and its label text. |
|
|
482
|
+
| `theme.marginXS` | number | `8` | Column gap between checkboxes in a Checkbox.Group. |
|
|
483
|
+
|
|
484
|
+
| Event | Event Data | Description |
|
|
485
|
+
| --- | --- | --- |
|
|
486
|
+
| `onChange` | `{ value }` | Trigger actions when selection is changed. |
|
|
487
|
+
| `onTooltipClick` | \- | Trigger actions when the tooltip icon is clicked. |
|
|
488
|
+
|
|
489
|
+
| Key | Target |
|
|
490
|
+
| --- | --- |
|
|
491
|
+
| `/block` | Outer block wrapper (always available). |
|
|
492
|
+
| `/element` | The CheckboxSwitch element. |
|
|
493
|
+
| `/label` | The CheckboxSwitch label. |
|
|
494
|
+
| `/extra` | The CheckboxSwitch extra content. |
|
|
495
|
+
| `/feedback` | The CheckboxSwitch validation feedback. |
|
|
496
|
+
|
|
497
|
+
No slots defined.
|