ant-design/components/icon/index.tsx
Benjy Cui 3411765ce9 Refactor ts (#2760)
* refactor: add interface form Calendar

* refactor: add interface for layout

* refactor: add interface for DatePicker

* refactor: add interface for Icon

* refactor: add interface for InputNumber

* refactor: add interface for Input
2016-08-19 17:11:06 +08:00

13 lines
297 B
TypeScript

import * as React from 'react';
export interface IconProps {
type: string;
className?: string;
onClick?: (e) => void;
}
export default (props: IconProps) => {
const { type, className = '' } = props;
return <i {...props} className={`${className} anticon anticon-${type}`.trim()} />;
};