Avatar

Displays a user's profile picture, initials, or fallback icon.

Installation

Copy the following code into your app directory.

buridan add component avatar

Usage

Make sure to correctly set your imports relative to the component.

from components.base_ui.avatar import avatar

Examples

Below are examples demonstrating how the component can be used.

General

Displays a basic avatar with either a user image or a fallback placeholder.

CNBUI
BUBUIRE

Sizes

Demonstrates how to scale the avatar component using Tailwind utility classes.

RERERERERE

With Badge

Shows how to combine an avatar with status or notification badges for added context.

CN