Skip to content

Big React Checkbox. Assumes Bootstrap and Font Awesome installed in Canopy.

License

Notifications You must be signed in to change notification settings

AppStateESS/canopy-react-bigcheckbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}/>)
  }
}

About

Big React Checkbox. Assumes Bootstrap and Font Awesome installed in Canopy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published