Docs

This page isn't translated yet

next

Avatar block

An inline round profile image from an upload.

On this page

The Avatar block places a round profile image inline.

Where it is offeredLink to this section

Offered in every tier: root, region, fragment and slot, as an inline block that sits inside a line of text.

FieldsLink to this section

FieldTypeLabelDefaultNotes
_tierselectOptions: root (Root), region (Region), fragment (Fragment), slot (Slot), stack (Stack)
alignSelfradioAlign SelfcenterShown when siblingData?._tier==="stack"; Required; Shown when siblingData?.setSelfAlign; Options: start (Start), center (Center), end (End), stretch (Stretch)
flex1checkboxFlex 1falseShown when siblingData?._tier==="stack"
growcheckboxGrowfalseShown when siblingData?._tier==="stack"
imageuploadSelect imageRequired; Related to uploads
messageuiShown when siblingData?._tier==="stack"
setSelfAligncheckboxDefine Self AlignmentfalseShown when siblingData?._tier==="stack"
shrinkcheckboxShrinkfalseShown when siblingData?._tier==="stack"

Rendered outputLink to this section

Renders the Avatar component.

ConverterLink to this section

avatarConverter reads the populated image upload and passes its URL and alt text to <Avatar>. A missing upload or numeric upload ID renders nothing; resolve relationships before rendering.

CustomizingLink to this section

Import AvatarBlock from @systhemaui/payload/blocks as the starting schema for a project block. Register the definition and your renderer through customBlocks, using type: 'inline' and the editor tiers you intend to support. A distinct slug creates a new block; a converter registered under the existing avatar slug takes precedence over the built-in converter. Keep the fields that renderer reads, including populated relationships and nested editor states.

See Registering blocks for the configuration pattern and Converters for the renderer contract. A project converter used in client-mode live preview also needs browser registration.