@cfxjs/react-ui
Version:
Modern and minimalist React UI library.
27 lines (26 loc) • 960 B
TypeScript
import React from 'react';
import { NormalSizes } from '../utils/prop-types';
import AvatarGroup from './avatar-group';
interface Props {
src?: string;
stacked?: boolean;
text?: string;
size?: NormalSizes | number;
isSquare?: boolean;
className?: string;
}
declare const defaultProps: {
stacked: boolean;
text: string;
size: number | "mini" | "small" | "medium" | "large";
isSquare: boolean;
className: string;
};
declare type NativeAttrs = Omit<Partial<React.ImgHTMLAttributes<any> & React.HTMLAttributes<any>>, keyof Props>;
export declare type AvatarProps = Props & typeof defaultProps & NativeAttrs;
declare type MemoAvatarComponent<P = {}> = React.NamedExoticComponent<P> & {
Group: typeof AvatarGroup;
};
declare type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs;
declare const _default: MemoAvatarComponent<ComponentProps>;
export default _default;