UNPKG

antd-mobile

Version:
12 lines (11 loc) 551 B
import type { FC, ReactNode } from 'react'; import React from 'react'; import { NativeProps } from '../../utils/native-props'; import { ImageProps } from '../image'; export declare type AvatarProps = { src: string; fallback?: ReactNode; fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; onClick?: (event: React.MouseEvent<HTMLDivElement | HTMLImageElement, Event>) => void; } & Pick<ImageProps, 'alt' | 'lazy' | 'onError' | 'onLoad'> & NativeProps<'--size' | '--border-radius'>; export declare const Avatar: FC<AvatarProps>;