Skip to content

UserAvatar โ€‹

Source: client/lib/theme/vueda-tailwind/display/index.js

Initials chip frame. The component supplies size inline from its size prop, while tone selects the primary or sidebar color recipe.

Vue component: UserAvatar

SlotDefault classesDescription
rootcallbackInitials chip frame. The component supplies size inline from its size prop, while tone selects the primary or sidebar color recipe.
initialsfont-semibold uppercase leading-none tabular-numsUppercase initials text with stable numeric glyphs.

root โ€‹

Initials chip frame. The component supplies size inline from its size prop, while tone selects the primary or sidebar color recipe.

Callback:

javascript
({ tone }) => ({
            class: [
                "relative inline-flex shrink-0 items-center justify-center overflow-hidden",
                "rounded-full select-none",
                {
                    "border border-primary bg-[color-mix(in_oklab,var(--primary)_14%,transparent)] text-primary":
                        !tone || tone === "primary",
                    "bg-sidebar-accent text-sidebar-foreground": tone === "sidebar",
                },
            ],
        })

Source: client/lib/theme/vueda-tailwind/display/UserAvatar.theme.js:18

initials โ€‹

Uppercase initials text with stable numeric glyphs.

Default classes:

font-semibold uppercase leading-none tabular-nums

Source: client/lib/theme/vueda-tailwind/display/UserAvatar.theme.js:30

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2