deprecated
4 months ago
block.json
4 months ago
component.js
4 months ago
edit.js
4 months ago
icon.svg
4 months ago
index.js
4 months ago
index.php
4 months ago
save.js
4 months ago
style.scss
4 months ago
transforms.js
4 months ago
block.json
115 lines
| 1 | { |
| 2 | "apiVersion": 3, |
| 3 | "name": "vk-blocks/button", |
| 4 | "title": "Button", |
| 5 | "category": "vk-blocks-cat", |
| 6 | "attributes": { |
| 7 | "content": { |
| 8 | "type": "string", |
| 9 | "source": "html", |
| 10 | "selector": "span" |
| 11 | }, |
| 12 | "subCaption": { |
| 13 | "type": "string" |
| 14 | }, |
| 15 | "buttonUrl": { |
| 16 | "type": "string" |
| 17 | }, |
| 18 | "buttonTarget": { |
| 19 | "type": "boolean", |
| 20 | "default": false |
| 21 | }, |
| 22 | "relAttribute": { |
| 23 | "type": "string", |
| 24 | "default": "" |
| 25 | }, |
| 26 | "linkToPost": { |
| 27 | "type": "boolean", |
| 28 | "default": false |
| 29 | }, |
| 30 | "buttonSize": { |
| 31 | "type": "string", |
| 32 | "default": "md" |
| 33 | }, |
| 34 | "buttonType": { |
| 35 | "type": "string", |
| 36 | "default": "0" |
| 37 | }, |
| 38 | "buttonEffect": { |
| 39 | "type": "string", |
| 40 | "default": "" |
| 41 | }, |
| 42 | "buttonColor": { |
| 43 | "type": "string", |
| 44 | "default": "primary" |
| 45 | }, |
| 46 | "buttonTextColorCustom": { |
| 47 | "type": "string" |
| 48 | }, |
| 49 | "buttonColorCustom": { |
| 50 | "type": "string" |
| 51 | }, |
| 52 | "buttonAlign": { |
| 53 | "type": "string", |
| 54 | "default": "left" |
| 55 | }, |
| 56 | "buttonWidthMobile": { |
| 57 | "type": "number", |
| 58 | "default": 0 |
| 59 | }, |
| 60 | "buttonWidthTablet": { |
| 61 | "type": "number", |
| 62 | "default": 0 |
| 63 | }, |
| 64 | "buttonWidth": { |
| 65 | "type": "number", |
| 66 | "default": 0 |
| 67 | }, |
| 68 | "outerGap": { |
| 69 | "type": "string", |
| 70 | "default": null |
| 71 | }, |
| 72 | "fontAwesomeIconBefore": { |
| 73 | "type": "string" |
| 74 | }, |
| 75 | "fontAwesomeIconAfter": { |
| 76 | "type": "string" |
| 77 | }, |
| 78 | "iconSizeBefore": { |
| 79 | "type": "string", |
| 80 | "default": null |
| 81 | }, |
| 82 | "iconSizeAfter": { |
| 83 | "type": "string", |
| 84 | "default": null |
| 85 | }, |
| 86 | "borderRadius": { |
| 87 | "type": "string", |
| 88 | "default": null |
| 89 | }, |
| 90 | "clientId": { |
| 91 | "type": "string" |
| 92 | }, |
| 93 | "blockId": { |
| 94 | "type": "string" |
| 95 | }, |
| 96 | "old_1_31_0": { |
| 97 | "type": "string", |
| 98 | "default": true |
| 99 | } |
| 100 | }, |
| 101 | "description": "A button link that can display icons before and after.", |
| 102 | "textdomain": "vk-blocks", |
| 103 | "supports": { |
| 104 | "className": true, |
| 105 | "anchor": true, |
| 106 | "typography": { |
| 107 | "__experimentalFontFamily": true, |
| 108 | "__experimentalFontSize": true, |
| 109 | "__experimentalTextTransform": true, |
| 110 | "__experimentalLetterSpacing": true |
| 111 | } |
| 112 | }, |
| 113 | "usesContext": ["queryId"] |
| 114 | } |
| 115 |