ant-design/components/icon/index.jsx

10 lines
215 B
React
Raw Normal View History

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