A shadcn-style avatar component built with Ark UI primitives.

LT

Installation

npx shadcn@latest add @ark-cn/avatar

Usage

import * as Avatar from "@/components/ui/avatar"

Read exported parts in src/components/ui/avatar.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Main demo

LT

Fallback Only

CN

Different Sizes

SM
DF
LG

Different Radius

RF
RL
RM
RN

Group Avatars

AC
MT
NK
+4

API reference

This component mirrors the upstream Ark UI primitive.

See the ARK UI documentation for the full API.