react-initial-avatar
Version:
Create Avatar from name initials
20 lines (17 loc) • 506 B
TypeScript
import React from 'react';
interface AvatarProps {
name: string;
height: number;
width: number;
backgroundColor: string;
color: string;
borderRadius: number;
borderWidth: number;
borderColor: string;
style?: {
[key: string]: string | number;
};
splitWith?: string;
}
declare const Avatar: ({ name, height, width, backgroundColor, color, borderRadius, borderWidth, borderColor, style, splitWith, }: AvatarProps) => React.JSX.Element;
export { Avatar };