ant-design/components/icon/index.jsx
2015-11-28 14:23:31 +08:00

10 lines
215 B
JavaScript

import React from 'react';
function Icon(props) {
let {type, className = '', ...other} = props;
className += ` anticon anticon-${type}`;
return <i className={className} {...other} />;
}
export default Icon;