UNPKG

@coconut-software/ui

Version:

React components for faster and easier web development.

17 lines (16 loc) 613 B
import type { PropsWithChildren } from 'react'; import type { AllColors } from '../utilities/colors'; export interface AvatarProps { 'aria-label'?: string; color?: AvatarColor; name?: string; variant?: AvatarVariant; } export type AvatarColor = AllColors | 'green'; type AvatarColors = { [key in AllColors | 'green']: string; }; type AvatarVariant = 'circle' | 'rounded' | 'square'; export declare const colors: AvatarColors; declare function Avatar({ 'aria-label': label, children, color, name, variant, }: PropsWithChildren<AvatarProps>): JSX.Element; export default Avatar;