Skip to content

Commit

Permalink
feat: Add Checkbox
Browse files Browse the repository at this point in the history
Co-Authored-By: Pram Gurusinga <[email protected]>
  • Loading branch information
chohner and pgurusinga committed Nov 16, 2023
1 parent d1572b7 commit b8323f6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"form-elements.input",
"form-elements.textarea",
"form-elements.select",
"form-elements.checkbox",
"form-elements.dropdown"
],
"pluginOptions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
},
"pre_form": {
"type": "dynamiczone",
"components": [
"basic.heading",
"basic.paragraph"
],
"components": ["basic.heading", "basic.paragraph"],
"pluginOptions": {
"i18n": {
"localized": true
Expand All @@ -54,6 +51,7 @@
"form-elements.input",
"form-elements.textarea",
"form-elements.select",
"form-elements.checkbox",
"form-elements.dropdown"
],
"pluginOptions": {
Expand Down
21 changes: 21 additions & 0 deletions src/components/form-elements/checkbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"collectionName": "components_form_elements_checkboxes",
"info": {
"displayName": "Checkbox",
"icon": "check"
},
"options": {},
"attributes": {
"label": {
"type": "string",
"required": false
},
"name": {
"type": "string",
"required": true
},
"value": {
"type": "string"
}
}
}

0 comments on commit b8323f6

Please sign in to comment.