Identity | IdentityBlock
IdentityBlock#
Description#
- Identity block: avatar, name and a line below, with slots for details and additional elements.
Props#
title(string) — Main name or title. Required.subtitle(string) — Subtitle or short description.src(string | null) — Avatar image path. Default:null.name(string) — Name for avatar initials, if nottitle.size(AvatarSize) — Avatar size. Default:'lg'.as('p' | 'h1' | 'h2' | 'h3') — HTML element for the title. Default:'p'.wrap(boolean) — Wrap text instead of truncating. Default:false.stack('never' | 'always' | 'narrow') — Stacked layout: never, always, or when the container is narrow. Default:'never'.
Usage#
| |
Notes#
- With
stack="narrow"the block automatically stacks below 20 rem of width. - The
detailsslot goes below the subtitle for additional content like badges or links.