block.json
41 lines
| 1 | { |
| 2 | "name": "surecart/switch", |
| 3 | "title": "Switch", |
| 4 | "apiVersion": 3, |
| 5 | "description": "Display a toggle switch.", |
| 6 | "category": "surecart", |
| 7 | "keywords": ["submit", "button"], |
| 8 | "textdomain": "surecart", |
| 9 | "ancestor": ["surecart/form"], |
| 10 | "supports": { |
| 11 | "reusable": false, |
| 12 | "html": false |
| 13 | }, |
| 14 | "attributes": { |
| 15 | "required": { |
| 16 | "type": "boolean" |
| 17 | }, |
| 18 | "name": { |
| 19 | "type": "string", |
| 20 | "default": "switch" |
| 21 | }, |
| 22 | "value": { |
| 23 | "type": "string", |
| 24 | "default": "on" |
| 25 | }, |
| 26 | "label": { |
| 27 | "type": "string", |
| 28 | "default": "Switch" |
| 29 | }, |
| 30 | "description": { |
| 31 | "type": "string" |
| 32 | }, |
| 33 | "help": { |
| 34 | "type": "string" |
| 35 | }, |
| 36 | "checked": { |
| 37 | "type": "boolean" |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 |