UNPKG

@vtex/admin-ui

Version:

> VTEX admin component library

25 lines (24 loc) 666 B
import type { ComponentPropsWithRef } from 'react'; /** * Component to create a user avatar from a passed label * It shows the first letter capitalized in the center * @example * ```jsx * <Avatar label="label" /> * ``` */ export declare const Avatar: import("@vtex/admin-ui-react").AdminUIJsxElement<"div", AvatarOptions, { palette: { lightBlue: any; green: any; orange: any; cyan: any; purple: any; teal: any; gray: any; }; }>; export interface AvatarOptions { label: string; } export declare type AvatarProps = ComponentPropsWithRef<typeof Avatar> & AvatarOptions;