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