mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
14 lines
261 B
React
14 lines
261 B
React
|
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;
|