ant-design/components/iconfont/index.jsx
2015-09-26 01:26:30 +08:00

14 lines
261 B
JavaScript

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