Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rax-checkbox

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rax-checkbox

CheckBox component for Rax.

  • 0.4.6
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-35.71%
Maintainers
1
Weekly downloads
 
Created
Source

CheckBox

npm

CheckBox is the basis of the selection box, select the box with a picture to achieve, to support users to use their own images to replace

Install

$ npm install rax-checkbox --save

Import

import CheckBox from 'rax-checkbox';

Props

nametypedefaultdescribe
checkedBooleanselected state
checkedImageStringselected picture
uncheckedImageStringunselected picture
containerStyleObjectselect container style
checkboxStyleObjectselect picture style
onChangeFunctionselect event

Example

// demo
import {createElement, Component, render} from 'rax';
import View from 'rax-view';
import Button from 'rax-checkbox';

class App extends Component {
  render() {
    return (
      <View style={{ width: 750 }}>
        <CheckBox 
          containerStyle={{
            marginTop: 10,
          }}
          onChange={(checked) => {
            console.log('checked', checked);
          }} />
      </View>
    );
  }
}

render(<App />);

Keywords

FAQs

Package last updated on 24 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc