icon
parent
e704e3667d
commit
498dc7553a
|
@ -1,11 +1,12 @@
|
|||
require './style'
|
||||
localCSS = require './style'
|
||||
|
||||
module.exports = React.createClass
|
||||
|
||||
# -- States & Properties
|
||||
propTypes:
|
||||
value : React.PropTypes.string
|
||||
value : React.PropTypes.string
|
||||
|
||||
# -- Render
|
||||
render: ->
|
||||
<span data-component-fonticon className="icon #{@props.value}" />
|
||||
className = "#{localCSS.root} #{@props.value}"
|
||||
<span data-react-toolbox='icon' className={className} />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@import '../constants.styl'
|
||||
@import url('https://fonts.googleapis.com/icon?family=Material+Icons')
|
||||
|
||||
[data-component-fonticon]
|
||||
:local(.root)
|
||||
display : inline-block
|
||||
font-family : 'Material Icons'
|
||||
font-weight : normal
|
||||
|
|
Loading…
Reference in New Issue