@neuctra/ui
Version:
A modern, responsive, customizable React UI component library powered by Tailwind CSS and Vite.
28 lines (27 loc) • 912 B
TypeScript
import { default as React, CSSProperties } from 'react';
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "responsive";
type AvatarVariant = "circular" | "rounded" | "square";
type StatusPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
export interface AvatarProps {
src?: string;
alt?: string;
size?: AvatarSize;
variant?: AvatarVariant;
isOnline?: boolean;
isOffline?: boolean;
ring?: boolean;
fallback?: string;
onClick?: () => void;
statusPosition?: StatusPosition;
className?: string;
statusClassName?: string;
style?: CSSProperties;
statusStyle?: CSSProperties;
/** 🔥 Full Customization */
imageClassName?: string;
fallbackClassName?: string;
iconClassName?: string;
}
export declare const Avatar: React.FC<AvatarProps>;
export declare const getAvatarSize: (size: AvatarSize) => number;
export {};