Sha256: e84bcca5a47b293260227309e6b9223dba94b141232accc87667ffc5d037e0ab
Contents?: true
Size: 389 Bytes
Versions: 12
Compression:
Stored size: 389 Bytes
Contents
Rev.pullInto(this) 'Input' Rev.registerComponent 'Switch', componentWillMount: -> @props.id = "RevSwitch-#{_.uniqueId()}" unless @props.id? render: -> props = @getPropsWithout 'className' className = @classAdd 'RevSwitch': true 'switch': true <div className={className}> <input {...props} type="checkbox" /><label htmlFor={@props.id} /> </div>
Version data entries
12 entries across 12 versions & 1 rubygems