ant-design/components/icon/index.tsx

7 lines
189 B
TypeScript
Raw Normal View History

2016-06-28 22:22:42 +08:00
import * as React from 'react';
2016-06-22 13:18:43 +08:00
export default props => {
2016-06-28 22:22:42 +08:00
const { type, className = '' } = props;
2016-07-13 11:14:24 +08:00
return <i {...props} className={`${className} anticon anticon-${type}`.trim()} />;
2016-06-22 13:18:43 +08:00
};