UNPKG

@temuulennibno/react-nice-avatar

Version:

React library for generating customizable avatars with extensive styling options

17 lines (16 loc) 600 B
import React from "react"; import type { NiceAvatarProps } from "./types"; export interface AvatarProps extends Omit<NiceAvatarProps, 'style'> { /** HTML id attribute */ id?: string; /** CSS class name */ className?: string; /** Inline styles */ style?: React.CSSProperties; /** Avatar shape */ shape?: "circle" | "rounded" | "square"; } declare const ReactNiceAvatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>; export default ReactNiceAvatar; export { genConfig, defaultOptions } from "./utils"; export type * from "./types";