mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
14 lines
261 B
JavaScript
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;
|