block.json in Gutenify – Visual Site Builder Blocks & Starter Templates 1.0.3, at src/blocks/button/block.json
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "gutenify/button", |
| 4 | "category": "widgets", |
| 5 | "attributes": { |
| 6 | "blockClientId": { |
| 7 | "type": "string", |
| 8 | "default": "" |
| 9 | }, |
| 10 | "blockAdvanceOptions": { |
| 11 | "type": "object", |
| 12 | "default": { |
| 13 | "buttonBorderRadius": 0, |
| 14 | "buttonBorderWidth": 0 |
| 15 | } |
| 16 | }, |
| 17 | "text": { |
| 18 | "type": "string", |
| 19 | "default": "" |
| 20 | }, |
| 21 | "placeholder": { |
| 22 | "type": "string", |
| 23 | "default": "" |
| 24 | }, |
| 25 | "url": { |
| 26 | "type": "string", |
| 27 | "source": "attribute", |
| 28 | "selector": "a", |
| 29 | "attribute": "href" |
| 30 | }, |
| 31 | "linkTarget": { |
| 32 | "type": "string", |
| 33 | "source": "attribute", |
| 34 | "selector": "a", |
| 35 | "attribute": "target" |
| 36 | }, |
| 37 | "rel": { |
| 38 | "type": "string", |
| 39 | "source": "attribute", |
| 40 | "selector": "a", |
| 41 | "attribute": "rel" |
| 42 | }, |
| 43 | "icon": { |
| 44 | "type": "object", |
| 45 | "default": { |
| 46 | "name": "", |
| 47 | "positon": "before", |
| 48 | "spacing": "" |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 |