Component docs
Loading
"use client";
import { Avatar } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
name | string | — | — |
alt | string | — | — |
fallback | ReactNode | — | — |
size | Exclude<ComponentSize, "xs"> | — | Size from the shared scale (xs, sm, md, lg). |
src | string | — | — |
tone | "neutral" | "primary" | — | Colour role (neutral, primary, danger, success, warning, info). |
namestring
altstring
fallbackReactNode
sizeExclude<ComponentSize, "xs">
Size from the shared scale (xs, sm, md, lg).
srcstring
tone"neutral" | "primary"
Colour role (neutral, primary, danger, success, warning, info).
Other props are passed to the root element (HTMLAttributes<HTMLSpanElement>), including className, style, id and aria-* attributes.
<Avatar name="Pixxl User" />