Sha256: f9089d3e7cfa8dc8ead17180824eff4c929f39083096ff4922d92266e9bb5ca2
Contents?: true
Size: 515 Bytes
Versions: 22
Compression:
Stored size: 515 Bytes
Contents
Rev.registerComponent 'Modal', propTypes: isOpen: React.PropTypes.bool, onBackgroundClick: React.PropTypes.func getDefaultProps: -> isOpen: false onBackgroundClick: (e)-> @props.onBackgroundClick() if @props.onBackgroundClick; render: -> if @props.isOpen <div className="RevModal"> <div className="RevModal-background" onClick={@onBackgroundClick} /> <div className="RevModal-content"> {@props.children} </div> </div> else null
Version data entries
22 entries across 22 versions & 1 rubygems