UNPKG

default-avatar

Version:

A customizable React component to generate default avatars with initials and themed colors.

8 lines (7 loc) 249 B
import { AvatarThemeOptions } from "./types"; declare function getInitials(name: string): string; declare function getThemeColors(options?: AvatarThemeOptions): { primary: string; contrast: string; }; export { getInitials, getThemeColors };