block.json
91 lines
| 1 | { |
| 2 | "name": "kubio/read-more-button", |
| 3 | "category": "kubio-blog-components", |
| 4 | "usesContext": [ |
| 5 | "postId", |
| 6 | "postType" |
| 7 | ], |
| 8 | "parent": null, |
| 9 | "supports": { |
| 10 | "kubio": { |
| 11 | "appearanceEffect": true, |
| 12 | "default": { |
| 13 | "style": { |
| 14 | "descendants": { |
| 15 | "icon": { |
| 16 | "size": { |
| 17 | "value": 16 |
| 18 | }, |
| 19 | "margin": { |
| 20 | "left": { |
| 21 | "value": 10 |
| 22 | }, |
| 23 | "right": { |
| 24 | "value": 10 |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | }, |
| 31 | "elementsEnum": { |
| 32 | "SPACING": "spacing" |
| 33 | }, |
| 34 | "elementsByName": { |
| 35 | "spacing": { |
| 36 | "tag": "div", |
| 37 | "className": [ |
| 38 | "h-w-100" |
| 39 | ], |
| 40 | "wrapper": false, |
| 41 | "default": false |
| 42 | } |
| 43 | }, |
| 44 | "template": { |
| 45 | "type": "element", |
| 46 | "props": { |
| 47 | "name": "spacing" |
| 48 | }, |
| 49 | "children": [ |
| 50 | { |
| 51 | "type": "element", |
| 52 | "props": { |
| 53 | "name": "outer" |
| 54 | }, |
| 55 | "children": [ |
| 56 | { |
| 57 | "type": "element", |
| 58 | "props": { |
| 59 | "name": "link" |
| 60 | }, |
| 61 | "children": [ |
| 62 | { |
| 63 | "type": "element", |
| 64 | "props": { |
| 65 | "name": "icon", |
| 66 | "shouldRender": "computed.showBeforeIcon" |
| 67 | } |
| 68 | }, |
| 69 | { |
| 70 | "type": "element", |
| 71 | "props": { |
| 72 | "name": "text" |
| 73 | } |
| 74 | }, |
| 75 | { |
| 76 | "type": "element", |
| 77 | "props": { |
| 78 | "name": "icon", |
| 79 | "shouldRender": "computed.showAfterIcon" |
| 80 | } |
| 81 | } |
| 82 | ] |
| 83 | } |
| 84 | ] |
| 85 | } |
| 86 | ] |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 |