brijr/ui

Lab

Avatar

npx shadcn@latest add @brijr/avatar

States

The broken URL is deliberate: the browser logs a failed request for it and the fallback stays.

ALimage · loaded
GHimage · error
ALfallback only
Unknown userfallback · icon
Afallback · one letter
ABCfallback · three letters

Sizes

Avatar has no size prop; size-9 is the default and other sizes come from layout classes.

ALsize-6
ALsize-9
ALsize-10
ALsize-12
ALsize-16
GHsize-6 · fallback
GHsize-10 · fallback
GHsize-16 · fallback

Group

No group part is exported; this is a plain flex row with negative space.

AL
GH
LT
+4
-space-x-2 · ring wrapper

With name

Ada Lovelaceada@example.com
avatar + name + email
Grace HopperAdmin
avatar + name + badge
Maximilian Wolfeschlegelsteinhausenbergerdorff
long name · truncate