| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 { 2 "$schema": "https://schemas.wp.org/trunk/block.json", 3 "apiVersion": 3, 4 "name": "core/button", 5 "title": "Button", 6 "category": "design", 7 "parent": [ "core/buttons" ], 8 "description": "Prompt visitors to take action with a button-style link.", 9 "keywords": [ "link" ], 10 "textdomain": "default", 11 "attributes": { 12 "tagName": { 13 "type": "string", 14 "enum": [ "a", "button" ], 15 "default": "a" 16 }, 17 "type": { 18 "type": "string", 19 "default": "button" 20 }, 21 "url": { 22 "type": "string", 23 "source": "attribute", 24 "selector": "a", 25 "attribute": "href", 26 "role": "content" 27 }, 28 "title": { 29 "type": "string", 30 "source": "attribute", 31 "selector": "a,button", 32 "attribute": "title", 33 "role": "content" 34 }, 35 "text": { 36 "type": "rich-text", 37 "source": "rich-text", 38 "selector": "a,button", 39 "role": "content" 40 }, 41 "linkTarget": { 42 "type": "string", 43 "source": "attribute", 44 "selector": "a", 45 "attribute": "target", 46 "role": "content" 47 }, 48 "rel": { 49 "type": "string", 50 "source": "attribute", 51 "selector": "a", 52 "attribute": "rel", 53 "role": "content" 54 }, 55 "placeholder": { 56 "type": "string" 57 }, 58 "backgroundColor": { 59 "type": "string" 60 }, 61 "textColor": { 62 "type": "string" 63 }, 64 "gradient": { 65 "type": "string" 66 } 67 }, 68 "supports": { 69 "anchor": true, 70 "splitting": true, 71 "align": false, 72 "alignWide": false, 73 "color": { 74 "__experimentalSkipSerialization": true, 75 "gradients": true, 76 "__experimentalDefaultControls": { 77 "background": true, 78 "text": true 79 } 80 }, 81 "dimensions": { 82 "width": true, 83 "__experimentalSkipSerialization": [ "width" ], 84 "__experimentalDefaultControls": { 85 "width": true 86 } 87 }, 88 "typography": { 89 "__experimentalSkipSerialization": [ 90 "fontSize", 91 "lineHeight", 92 "textAlign", 93 "fontFamily", 94 "fontWeight", 95 "fontStyle", 96 "textTransform", 97 "textDecoration", 98 "letterSpacing" 99 ], 100 "fontSize": true, 101 "lineHeight": true, 102 "textAlign": true, 103 "__experimentalFontFamily": true, 104 "__experimentalFontWeight": true, 105 "__experimentalFontStyle": true, 106 "__experimentalTextTransform": true, 107 "__experimentalTextDecoration": true, 108 "__experimentalLetterSpacing": true, 109 "__experimentalWritingMode": true, 110 "__experimentalDefaultControls": { 111 "fontSize": true 112 } 113 }, 114 "reusable": false, 115 "shadow": { 116 "__experimentalSkipSerialization": true 117 }, 118 "spacing": { 119 "__experimentalSkipSerialization": true, 120 "padding": [ "horizontal", "vertical" ], 121 "__experimentalDefaultControls": { 122 "padding": true 123 } 124 }, 125 "__experimentalBorder": { 126 "color": true, 127 "radius": true, 128 "style": true, 129 "width": true, 130 "__experimentalSkipSerialization": true, 131 "__experimentalDefaultControls": { 132 "color": true, 133 "radius": true, 134 "style": true, 135 "width": true 136 } 137 }, 138 "interactivity": { 139 "clientNavigation": true 140 } 141 }, 142 "styles": [ 143 { "name": "fill", "label": "Fill", "isDefault": true }, 144 { "name": "outline", "label": "Outline" } 145 ], 146 "editorStyle": "wp-block-button-editor", 147 "style": "wp-block-button", 148 "selectors": { 149 "root": ".wp-block-button .wp-block-button__link", 150 "typography": { 151 "writingMode": ".wp-block-button" 152 }, 153 "dimensions": { 154 "root": ".wp-block-button", 155 "width": ".wp-block-button" 156 } 157 } 158 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sun Jul 26 08:20:18 2026 | Cross-referenced by PHPXref |