カスタムブロック開発時にblock.jsonに設定したい、基本的なsupport属性の一覧です。
{
"supports": {
"html": false,
"anchor": true,
"align": true,
"background": {
"backgroundImage": true,
"backgroundSize": true
},
"color": {
"background": true,
"button": true,
"enableContrastChecker": true,
"gradients": true,
"heading": true,
"link": true,
"text": true
},
"dimensions": {
"aspectRatio": true,
"minHeight": true
},
"filter": {
"duotone": true
},
"multiple": true,
"position": {
"sticky": true
},
"typography": {
"fontSize": true,
"lineHeight": true,
"textAlign": true
}
},
}
参考
- https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/