elrrrrrrr
9 years ago
committed by
afc163
3 changed files with 27 additions and 7 deletions
@ -0,0 +1,13 @@ |
|||||
|
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; |
Loading…
Reference in new issue