UNPKG

woi-react-components

Version:

This project requires NodeJS (version 18 or later) and NPM. [Node](http://nodejs.org/) and [NPM](https://npmjs.org/) are really easy to install. To make sure you have them available on your machine, try running the following command. ```sh $ npm -v &

18 lines (14 loc) 2.16 kB
# WOI Checkbox Component WOI checkbox component is a reusable React component for creating interactive buttons in your web application. ## Props WOI Checkbox component accepts the following props: - `size` (number): (number): The width and height of the thumb, specified as a numerical value (e.g., pixels) or as a percentage of its container's width and height. - `borderRadius` (number): The borderRadius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners. - `borderWidth` (number): The border-width property sets the width of an element's borders. Specified as a numerical value (e.g., pixels) or as a percentage. - `activeBorderColor` (string): The color property is used to set the color of the track in active state. The color can be set by: name - specify a color name, like "red", Hex code (#RRGGBB), and RGB color (rgb(R, G, B)). - `inActiveBorderColor` (string): The color property is used to set the color of the track in inactive state. The color can be set by: name - specify a color name, like "red", Hex code (#RRGGBB), and RGB color (rgb(R, G, B)). - `activeBackgroundColor` (string): The color property is used to set the background color of the container in active state. The color can be set by: name - specify a color name, like "red", Hex code (#RRGGBB), and RGB color (rgb(R, G, B)). - `inActiveBackgroundColor` (string): The color property is used to set the background color of the container in inactive state. The color can be set by: name - specify a color name, like "red", Hex code (#RRGGBB), and RGB color (rgb(R, G, B)). - `icon` (string): An icon or image that appears before the button's text. It can be specified as a path to an icon file or a CSS class for an icon font. - `iconSize` (number): The height and width of the icon, specified as a numerical value (e.g., pixels) or as a percentage of its container's width and height. - `isChecked` (boolean): A boolean flag that determines whether the button is in a disabled state. When set to true, the button is not clickable or interactive.