mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-29 20:08:37 +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;
|