UNPKG

welcome-ui

Version:

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

12 lines (11 loc) 420 B
import { PolymorphicProps } from '../../theme/types'; import { colors } from './index'; export interface AvatarOptions { getInitials?: (name: string) => string; name: string; size?: Size; src?: string; } export type AvatarProps<T extends React.ElementType = 'div'> = AvatarOptions & PolymorphicProps<T>; export type Colors = (typeof colors)[number]; export type Size = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';