@ducor/react
Version:
admin template ui interface
27 lines (26 loc) • 937 B
TypeScript
import React from "react";
export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
src?: string;
alt?: string;
size?: "xs" | "sm" | "md" | "lg" | "xl";
variant?: "circular" | "rounded";
initials?: string;
notification?: {
position?: "top" | "bottom";
color?: "green" | "red" | "yellow" | "blue" | "gray";
};
placeholder?: boolean;
className?: string;
}
export interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
children: React.ReactNode;
max?: number;
size?: AvatarProps["size"];
variant?: AvatarProps["variant"];
className?: string;
direction?: "top-to-bottom" | "bottom-to-top";
}
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>> & {
Group: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
};
export default Avatar;