ant-design/components/icon/index.jsx
2015-11-20 11:05:34 +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;