<!-- wp:clanbite/player-avatar /-->Example block scaffolded with Create Block tool.
Dynamic
- Block name
clanbite/player-avatar- Title
- Player Avatar
- Category
clanbite-players- Uses context
clanbite/playerId
Attributes
| Attribute | Type | Default | Values |
|---|---|---|---|
avatarPreset | string | large | One of large, medium, small |
isLink | boolean | false | |
linkTarget | string | _self | |
rel | string | '' |
Supports
{
"spacing": {
"margin": true,
"padding": true,
"blockGap": true
},
"border": {
"color": true,
"radius": true,
"style": true,
"width": true
},
"shadow": true,
"color": {
"text": true,
"background": true
},
"html": false
}Markup
<!-- wp:clanbite/player-avatar /-->Defined in src/blocks/players/player-avatar/block.json