UNPKG

boring-avatars

Version:

Boring avatars is a tiny JavaScript React library that generates custom, SVG-based, round avatars from any username and color palette.

16 lines (15 loc) 1.3 kB
import { AvatarProps } from './components/types'; declare const AVATAR_VARIANTS: { pixel: ({ name, colors, title, square, size, ...otherProps }: AvatarProps) => import("react/jsx-runtime").JSX.Element; bauhaus: ({ name, colors, title, square, size, ...otherProps }: AvatarProps) => import("react/jsx-runtime").JSX.Element; ring: ({ name, colors, title, square, size, ...otherProps }: AvatarProps) => import("react/jsx-runtime").JSX.Element; beam: ({ name, colors, title, square, size, ...otherProps }: AvatarProps) => import("react/jsx-runtime").JSX.Element; sunset: ({ name, colors, title, square, size, ...otherProps }: AvatarProps) => import("react/jsx-runtime").JSX.Element; marble: ({ name, colors, title, square, size, ...otherProps }: AvatarProps) => import("react/jsx-runtime").JSX.Element; geometric: ({ name, colors, title, square, size, ...otherProps }: AvatarProps) => import("react/jsx-runtime").JSX.Element; abstract: ({ name, colors, title, square, size, ...otherProps }: AvatarProps) => import("react/jsx-runtime").JSX.Element; }; declare const Avatar: ({ variant, colors, name, title, size, square, ...otherProps }: Partial<AvatarProps> & { variant?: keyof typeof AVATAR_VARIANTS; }) => import("react/jsx-runtime").JSX.Element; export default Avatar;