Elements

Components

Avatar

Avatar, dressed in the paper-and-ink system: a circular seal on inset paper that holds initials until the image loads over them. `size` picks a control-height rung for the seal — the core styles re-point `--bs-avatar-size` per rung, and scenes can still retune the variable directly.

#Basic usage

avatar/basic Vue React
S
BS
墨
印

#Props

#Fallback

A styled part — no props of its own; it takes the anatomy's shared styling.

#Image

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
sizeString as PropType<AvatarSize>"md"Seal diameter: one rung of the control-height ladder — the default is the md rung, level with the other control families, so an avatar rides a row without stretching it.
shapeString as PropType<"circle" | "square">"circle"The corner: round by default; square cuts it sharp, a stamp beside a round portrait.
idstringThe unique identifier of the machine.
idsPartial<{ root: string; image: string; fallback: string; }>The ids of the elements in the avatar. Useful for composition.