Components

Avatar (Radix UI)

An image element with a fallback for representing the user.

Loading

Installation

pnpm dlx shadcn@latest add @toui/avatar

Examples

Fallback

Loading

Indicator

Loading

Status

Loading

Badge

Loading

Size

Loading

Shapes

Loading

Group

Loading

Users

Loading

API Reference

This component builds on the Radix UI Avatar primitives, adding customization options such as indicators and status.

Avatar

This component is based on the Avatar.Root primitive.

PropTypeDefault
className string

AvatarImage

This component is based on the Avatar.Image primitive.

PropTypeDefault
className string

AvatarFallback

This component is based on the Avatar.Fallback primitive.

PropTypeDefault
className string

AvatarIndicator

This is a custom component used to display an indicator within the avatar.

PropTypeDefault
className string

AvatarStatus

This is a custom component for displaying a status indicator on the avatar.

PropTypeDefault
variant enum online
className string

Credits

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.