UNPKG

welcome-ui

Version:

Customizable design system with react, typescript, tailwindcss and ariakit.

11 lines (10 loc) 337 B
import { PolymorphicProps } from '../../theme/types'; export interface AvatarOptions { getInitials?: (name: string) => string; name?: string; size?: Size; src?: string; } export type AvatarProps<T extends React.ElementType = 'div'> = AvatarOptions & PolymorphicProps<T>; type Size = 'xs' | 'sm' | 'md' | 'lg'; export {};