Persona Preview
A persona is a representation of a person with additional contextual information.
Personas usually include an avatar, a presence badge, and up to four lines of text content that provide additional data about that person.
Properties
as
“div”
avatar
Avatar to display.
If a PresenceBadge and an Avatar are provided, the Avatar will display the PresenceBadge as its presence.
WithSlotShorthandValue<WithSlotRenderFunction<Omit<ComponentProps<AvatarSlots, "root">, "color"> & { active?: "active" | "inactive" | "unset"; activeAppearance?: "ring" | ... 2 more ...; ... 4 more ...; size?: AvatarSize | undefined; } & RefAttributes<...>>> | null | undefined
name
The name of the person or entity represented by the Persona.
When
primaryText
is not provided, this will be used as the default value for
primaryText
.
string
presence
PresenceBadge to display.
If
presenceOnly
is true, the PresenceBadge will be displayed instead of the Avatar.
WithSlotShorthandValue<WithSlotRenderFunction<Omit<ComponentProps<Pick<BadgeSlots, "root" | "icon">, "root">, "color"> & Pick<BadgeProps, "size"> & { ...; } & RefAttributes<...>>> | null
presenceOnly
Whether to display only the presence.
boolean
false
primaryText
The first line of text in the Persona, larger than the rest of the lines.
primaryText
defaults to the
name
prop. We recomend to only use
name
, use
primaryText
when the text is different than the
name
prop.
WithSlotShorthandValue<{ as?: "span"; } & Pick<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }> | null
quaternaryText
The fourth line of text in the Persona.
WithSlotShorthandValue<{ as?: "span"; } & Pick<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }> | null
secondaryText
The second line of text in the Persona.
WithSlotShorthandValue<{ as?: "span"; } & Pick<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }> | null
size
The size of a Persona and its text.
“small”
“extra-small”
“medium”
“large”
“extra-large”
“huge”
“medium”
tertiaryText
The third line of text in the Persona.
WithSlotShorthandValue<{ as?: "span"; } & Pick<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }> | null
textAlignment
The vertical alignment of the text relative to the avatar/presence.
“center”
“start”
“start”
textPosition
The position of the text relative to the avatar/presence.
“before”
“after”
“below”
“after”