block.json in Gutenberg 7.4.0, at build/block-library/blocks/button/block.json
| 1 | { |
| 2 | "name": "core/button", |
| 3 | "category": "layout", |
| 4 | "attributes": { |
| 5 | "url": { |
| 6 | "type": "string", |
| 7 | "source": "attribute", |
| 8 | "selector": "a", |
| 9 | "attribute": "href" |
| 10 | }, |
| 11 | "title": { |
| 12 | "type": "string", |
| 13 | "source": "attribute", |
| 14 | "selector": "a", |
| 15 | "attribute": "title" |
| 16 | }, |
| 17 | "text": { |
| 18 | "type": "string", |
| 19 | "source": "html", |
| 20 | "selector": "a" |
| 21 | }, |
| 22 | "backgroundColor": { |
| 23 | "type": "string" |
| 24 | }, |
| 25 | "textColor": { |
| 26 | "type": "string" |
| 27 | }, |
| 28 | "customBackgroundColor": { |
| 29 | "type": "string" |
| 30 | }, |
| 31 | "customTextColor": { |
| 32 | "type": "string" |
| 33 | }, |
| 34 | "linkTarget": { |
| 35 | "type": "string", |
| 36 | "source": "attribute", |
| 37 | "selector": "a", |
| 38 | "attribute": "target" |
| 39 | }, |
| 40 | "rel": { |
| 41 | "type": "string", |
| 42 | "source": "attribute", |
| 43 | "selector": "a", |
| 44 | "attribute": "rel" |
| 45 | }, |
| 46 | "placeholder": { |
| 47 | "type": "string" |
| 48 | }, |
| 49 | "borderRadius": { |
| 50 | "type": "number" |
| 51 | }, |
| 52 | "gradient": { |
| 53 | "type": "string" |
| 54 | }, |
| 55 | "customGradient": { |
| 56 | "type": "string" |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 |