https://github.com/beldar/babylon-checkbox
https://github.com/beldar/babylon-checkbox
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/beldar/babylon-checkbox
- Owner: beldar
- Created: 2017-06-23T13:40:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-23T13:44:09.000Z (about 9 years ago)
- Last Synced: 2025-08-26T01:26:49.676Z (11 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Babylon CheckboxWithLabel
This component mimics the functionality provided by a checkbox and a label but without a checkbox input element.
## Usage
```jsx
console.warn(`Checkbox changed: checked? ${e.target.checked} value: ${e.target.value}`) }
label="Select this checkbox"
/>
```
All the props you pass to it will be forwarded to the `Checkbox` component, while the `label` prop
will be used to display the label copy.
Alternatively you also use the `Checkbox` component by itself:
```jsx
console.warn(`Checkbox changed: checked? ${e.target.checked} value: ${e.target.value}`) }
/>
```
## Install it
```
npm install
```
## Run it
```
npm start
```
## Test it
```
npm test
```