UNPKG

549 BTypeScriptView Raw
1import * as React from 'react';
2import { IconPropsType } from './PropsType';
3import { Omit } from '../_util/types';
4export declare type SvgProps = Omit<React.HTMLProps<SVGSVGElement>, 'size' | 'type'>;
5export interface IconProps extends IconPropsType, SvgProps {
6 size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
7 onClick?: React.MouseEventHandler<SVGSVGElement>;
8}
9export default class Icon extends React.Component<IconProps, any> {
10 static defaultProps: {
11 size: string;
12 };
13 componentDidMount(): void;
14 render(): JSX.Element;
15}