UNPKG

antd-mobile-alita

Version:

基于 React 的移动设计规范实现

16 lines (15 loc) 549 B
import * as React from 'react'; import { IconPropsType } from './PropsType'; import { Omit } from '../_util/types'; export declare type SvgProps = Omit<React.HTMLProps<SVGSVGElement>, 'size' | 'type'>; export interface IconProps extends IconPropsType, SvgProps { size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg'; onClick?: React.MouseEventHandler<SVGSVGElement>; } export default class Icon extends React.Component<IconProps, any> { static defaultProps: { size: string; }; componentDidMount(): void; render(): JSX.Element; }