Avatar

A person's picture, or their initials when there is none.

Example

ABHTH
tsx
<Stack direction="row" gap="sm" align="center">
  <Avatar size="sm" fallback="AB" />
  <Avatar fallback="HT" />
  <Avatar
    size="lg"
    src="/apple-touch-icon.png"
    alt="Heulen"
    fallback="H"
  />
</Stack>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Avatar, Stack } from "@dash/server";

Props

AvatarProps

Prop
Type
Description
srcstring
altstring
fallbackstring
size"sm" | "md" | "lg"
PreviousTree
On this page