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