ant-design/components/icon/index.jsx

8 lines
199 B
React
Raw Normal View History

import React from 'react';
2015-12-06 16:22:34 +08:00
export default props => {
let { type, className = '', ...other } = props;
2015-11-28 14:23:31 +08:00
className += ` anticon anticon-${type}`;
return <i className={className} {...other} />;
2015-12-06 16:22:34 +08:00
};