Avatar

A versatile avatar component for user profile images and fallback content.

Basic Usage

Sizes

Colors

Radius

Bordered

Fallback States

Component API Reference

Props
  • src?: string - URL of the avatar image
  • name?: string - Name to display as fallback or for accessibility
  • color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" - Color variant of the avatar
  • radius?: "r-none" | "r-xs" | "r-sm" | "r-md" | "r-lg" | "r-xl" | "r-full" - Border radius of the avatar
  • size?: "sm" | "md" | "lg" - Size of the avatar
  • icon?: any - Icon component to display as fallback
  • fallback?: any - Custom fallback content
  • isBordered?: boolean - Whether to show a border around the avatar
  • isDisabled?: boolean - Whether the avatar is in a disabled state
  • isFocusable?: boolean - Whether the avatar can receive focus
  • showFallback?: boolean - Force display of fallback content
  • class?: string - Additional CSS classes