sigilUI

Avatar

Represent a person with an image or readable initials.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Avatar, AvatarGroup } from "@sigil-ui/components";

Usage

<Avatar name="Kevin Liu" />

Sub-components

This component includes the following parts:

  • <AvatarGroup>

Props

PropTypeDefaultDescription
srcstring—Src configuration.
altstring—Alt configuration.
namestring—Name configuration.
fallbackstring—Fallback configuration.
sizekeyof typeof sizeMap"md"Sets the component's size.

Token integration

CSS VariablePurpose
--s-surfaceSurface
--s-text-mutedText muted
--s-backgroundBackground
--s-surface-elevatedSurface elevated