Notoriously Psychedelic Modules
    Wondering what’s next for npm?Check out our public roadmap! »

    @essappstate/canopy-react-bigcheckbox

    0.2.7 • Public • Published

    canopy-react-bigcheckbox

    This is a React script for use with AppStateESS/Canopy. It assumes you have Bootstrap 4 and FontAwesome 5 available. A class named "pointer" is used.

    .pointer:hover{cursor:pointer}
    

    Example:

    import React from 'react'
    import BigCheckBox from '@essappstate/canopy-react-bigcheckbox'
    
    class Example extends React.Component {
      constructor(props) {
        super(props)
        this.state = {yesFire: true}
      }
    
      setValue(val) {
        this.setState(yesFire : val)
      }
    
      render() {
        return (<BigCheckbox
          label="Fire Wave Motion Gun"
          checked={this.state.yesFire}
          handle={setValue}/>)
      }
    }

    Keywords

    Install

    npm i @essappstate/canopy-react-bigcheckbox

    DownloadsWeekly Downloads

    19

    Version

    0.2.7

    License

    MIT

    Unpacked Size

    17.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar