UNPKG

@visactor/react-vtable

Version:

The react version of VTable

16 lines (15 loc) 627 B
import type { IGroup } from '@visactor/vtable/es/vrender'; import { type BackgroundAttributes, type Cursor, type ITextGraphicAttribute } from '@visactor/vtable/es/vrender'; import React from 'react'; export interface AvatarProps { children?: string | React.ReactNode; textStyle?: Partial<ITextGraphicAttribute>; panelStyle?: BackgroundAttributes; size?: number; shape?: 'circle' | 'square'; visible?: boolean; cursor?: Cursor; autoFixFontSize?: boolean; onClick?: (e: Event) => void; } export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<IGroup>>;