ant-design/components/icon/index.tsx
2016-07-13 11:14:24 +08:00

7 lines
189 B
TypeScript

import * as React from 'react';
export default props => {
const { type, className = '' } = props;
return <i {...props} className={`${className} anticon anticon-${type}`.trim()} />;
};