NOCTA UI

Avatar

A versatile avatar component for displaying user profile images, initials, and status indicators with dark mode support

Installation

Install the Avatar component using the nocta-ui CLI:

npx @nocta-ui/cli add avatar

Then import the component:

import { Avatar } from '@/components/ui/avatar';

Examples

Default Avatar

John DoeJD Avatar
JD AvatarJD
Avatar

Sizes

John DoeJD Avatar
John DoeJD Avatar
John DoeJD Avatar
John DoeJD Avatar
John DoeJD Avatar
John DoeJD Avatar

Variants

John DoeJD Avatar
John DoeJD Avatar
JD AvatarJD
JD AvatarJD

Status Indicators

John DoeJD Avatar
Jane SmithJS Avatar
Mike JohnsonMJ Avatar
AB AvatarAB

Fallback Handling

John DoeJD Avatar
John DoeJD Avatar
SC AvatarSC
AB AvatarAB
Avatar

Avatar Groups

John DoeJD Avatar
Jane SmithJS Avatar
Mike JohnsonMJ Avatar
AB AvatarAB
+5

API Reference

Prop

Type