import { VariantProps } from 'class-variance-authority'; import * as AvatarPrimitive from '@radix-ui/react-avatar'; import * as React from 'react'; /** * Avatar size variants configuration using class-variance-authority. * Defines different avatar sizes with corresponding Tailwind CSS classes. */ export declare const avatarVariants: (props?: ({ size?: "default" | "lg" | "sm" | "md" | "xl" | null | undefined; } & import('class-variance-authority/types').ClassProp) | undefined) => string; /** * Props interface for the Avatar component. * Extends Radix UI Avatar Root props with size variant support. */ export interface AvatarProps extends React.ComponentPropsWithoutRef, VariantProps { } /** * Avatar component - A circular container for displaying user profile images or initials. * * Built on top of Radix UI's Avatar primitive with additional size variants. * Supports image display with automatic fallback to placeholder content. * * @example * ```tsx * // Basic usage with image and fallback * * * JD * * * // Small avatar with custom styling * * * U * * ``` * * @param size - The size variant of the avatar (sm, default, md, lg, xl) * @param className - Additional CSS classes to apply * @param children - Child components (typically AvatarImage and AvatarFallback) */ export declare const Avatar: React.ForwardRefExoticComponent>; /** * AvatarImage component - Displays the actual avatar image. * * Automatically handles image loading and will fall back to AvatarFallback * if the image fails to load or is not provided. * * @example * ```tsx * * ``` * * @param src - The image source URL * @param alt - Alternative text for accessibility * @param className - Additional CSS classes to apply */ export declare const AvatarImage: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; /** * AvatarFallback component - Displays fallback content when image is unavailable. * * Typically contains user initials, an icon, or other placeholder content. * Only renders when the AvatarImage fails to load or is not provided. * * @example * ```tsx * // Text fallback with user initials * * JD * * * // Icon fallback * * * * ``` * * @param className - Additional CSS classes to apply * @param children - Fallback content (text, icons, etc.) */ export declare const AvatarFallback: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; //# sourceMappingURL=avatar.d.ts.map