hextastudio/ui needs your support to stay running 🫶 Help us

Avatar

Collection of Avatar components with multiple variants.

Preview

Avatar

Installation

bash
npx hexta-ui add avatar

tsx
import { Avatar } from "@/components/hexta-ui/Avatar";

Preview

Avatar

Usage

tsx
<Avatar avatarUrl="/path/to/avatar.jpg" />

Preview

Avatar
Avatar

Usage

tsx
<Avatar variant="withStatus" avatarUrl="https://placeholder.co/80" size={80} />

                
<Avatar variant="withStatus" avatarUrl="https://placeholder.co/80" size={80} offline/>

Preview

Avatar5

Usage

tsx
 <Avatar variant="withBadge" avatarUrl="https://placeholder.co/80" size={80} badgeNumber={5} />

Props Information

Prop Name
Prop Type
Default Value
Description
Prop NameProp TypeDefault ValueDescription