UNPKG

welcome-ui

Version:

Customizable design system with react • styled-components • styled-system and ariakit.

14 lines (13 loc) 462 B
import { default as React } from 'react'; import { ShapeOptions } from '../Shape'; import { CreateWuiProps } from '../System'; import { AvatarColors, Size } from './theme'; export interface AvatarOptions { color?: AvatarColors; getInitials?: (name: string) => string; name: string; size?: Size; src?: string; } export type AvatarProps = CreateWuiProps<'div', AvatarOptions & ShapeOptions>; export declare const Avatar: React.FC<AvatarProps>;