Sha256: 7dc61228b55f869e5967f8486c91933aa26d536f58122f19cad67d35745d7710

Contents?: true

Size: 751 Bytes

Versions: 2

Compression:

Stored size: 751 Bytes

Contents

class Lanes.Components.Icon extends Lanes.React.BaseComponent

    propTypes:
        type: React.PropTypes.string.isRequired
        animated: React.PropTypes.bool

    render: ->

        classes = _.classnames 'icon', "icon-#{@props.type}", @props.className,
            'non-printable': @props.noPrint,
            'with-action' : @props.onClick,
            "icon-#{@props.size}" : @props.size,
            'icon-pulse' : @props.animated
            'flush'      : @props.flush
            'icon-lg'    : @props['lg']
            'icon-2x'    : @props['2x']
            'icon-3x'    : @props['3x']
            'icon-4x'    : @props['4x']
            'icon-5x'    : @props['5x']

        <i {...@props} style={@props.style} className={classes} />

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lanes-0.5.6 client/lanes/components/shared/Icon.cjsx
lanes-0.5.5 client/lanes/components/shared/Icon.cjsx