UNPKG

react-avatar-editor-v1

Version:

A React package that provides an easy-to-use avatar editor along with a customizable avatar display component.

27 lines (26 loc) 939 B
import React from 'react'; import { defaultOptions } from './utils'; interface NiceAvatarProps { id?: string; className?: string; style?: React.CSSProperties; shape?: 'circle' | 'rounded' | 'square'; sex?: keyof typeof defaultOptions.sex; faceColor?: string; earSize?: keyof typeof defaultOptions.earSize; hairColor?: string; hairStyle?: string[]; hatColor?: string; hatStyle?: keyof typeof defaultOptions.hatStyle; hairColorRandom?: boolean; eyeStyle?: keyof typeof defaultOptions.eyeStyle; glassesStyle?: keyof typeof defaultOptions.glassesStyle; noseStyle?: keyof typeof defaultOptions.noseStyle; mouthStyle?: keyof typeof defaultOptions.mouthStyle; shirtStyle?: keyof typeof defaultOptions.shirtStyle; shirtColor?: string; bgColor?: string; isGradient?: boolean; } declare const ReactNiceAvatar: React.FC<NiceAvatarProps>; export default ReactNiceAvatar;