New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-checkboxify

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-checkboxify

react-checkboxify is a fantastic package that allows you to easily add and utilize checkboxes in your React projects.

latest
Source
npmnpm
Version
2.0.3
Version published
Maintainers
0
Created
Source

react-checkboxify

Single Checkbox and group Checkboxes UI component for React
with incredible options for access to full customize with easy usage.

dumi

Install

rc-checkbox

Usage

import Checkbox, {GroupCheckbox} from 'react-checkboxify';
export <GroupCheckbox />;
export default () => <checkbox />;

Compatibility

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Electron
Electron
IE10, Edgelast 2.25 versionslast 2.25 versionslast 2.25 versionslast 2.25 versions

API

Checkbox

nametypedefaultdescription
namestring
labelstringnulllabel of input for show to client
parentClassNameString""additional class name of parent div element
labelClassNameString""additional class name of label element
inputClassNameString""additional class name of root node
onChangeFunction(e:Event, checked:Number)called when checkbox is changed. e is native event, checked is original checked state.
checkedBoolean: true, falsefalsesame with native input checkbox
disabledBoolean: true, falsefalseuse if for disable some checkbox in specific situation
customIconObj {checked?: "iconPath", unChecked?: "iconPath",
size : number }
nullwith checked and unchecked key you can use any icon for your checkbox, also you can change size it with size key and number value

GroupCheckbox

nametypedefaultdescription
listArray[]use it for send list of items to render item with checkbox icon
setSelectedItemsReact.SetStatenulladd set state in props for gave all items checking = true, I set all Object into Array with checked:true value.
selectTypeString: "single" | "multiple""single"you can set use can select only one item or more.
hasSearchBooleanfalseadd search bar for use easier than of huge list
searchOptionObject{label: "", className: "", disabled: false }customize everything you need to change it in search component like default label, className and disabled option.
parentClassNameString""additional class name of parent div element
checkboxClassNameString""additional class name of label element
checkboxFilledClassNameString""additional class name of root node
labelClassNameString""additional class name of root node
customIconObj {checked?: "iconPath", unChecked?: "iconPath",
size : number }
nullwith checked and unchecked key you can use any icon for your checkbox, also you can change size it with size key and number value

Online demo: https://mobinkaarimi.github.io/react-checkboxify/

License

react-checkboxify is released under the MIT license.

Keywords

checkbox

FAQs

Package last updated on 28 Aug 2024

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