KodeKarsa UI

Basics

Avatar

Initials in a rounded square, replaced by the photo once it loads. Also a stacked group.

src/components/ui/avatar.tsxBehavior from @ui-sdk/react/avatar

Sizes and group

Nadia PutriRaka PratamaIntan Maharani
  • Dimas Ardiansyah
  • Bima Santoso
  • Sekar Ayu
  • Yoga Saputra
  • +2

Import

tsx
import { Avatar, AvatarGroup } from "@/components/ui/avatar";

Guidelines

  • Set decorative when the person's name is already written next to the avatar.
  • A group shows at most max avatars; the rest become a +N count.