1.0.3 • Published 4 years ago
@feizheng/react-ant-checkbox v1.0.3
react-ant-checkbox
Checkbox for antd.
installation
npm install -S @feizheng/react-ant-checkbox
update
npm update @feizheng/react-ant-checkbox
properties
Name | Type | Default | Description |
---|---|---|---|
className | string | - | The extended className for component. |
value | bool | - | The controlled value. |
defaultValue | bool | - | Default value. |
onChange | func | noop | The change handler. |
usage
import css
@import "~@feizheng/react-ant-checkbox/dist/style.scss"; // customize your styles: $react-ant-checkbox-options: ()
import js
import ReactAntCheckbox from '@feizheng/react-ant-checkbox'; import ReactDOM from 'react-dom'; import React from 'react'; import './assets/style.scss'; class App extends React.Component { componentDidMount() {} render() { return ( <div className="app-container"> <ReactAntCheckbox /> </div> ); } } ReactDOM.render(<App />, document.getElementById('app'));