Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

wired-checkbox

v1.0.0arrow_drop_down
v1.0.0
v0.9.2
STATUS
Passing
DOWNLOADS
7
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 months ago
SIZE
12 KB
subject
Hand-drawn sketchy checkbox web component.
1 contributor
Use wired-checkbox in your project ?
Copied
npm i @bit/wiredjs.wired-elements.wired-checkbox
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
revert changes
reload
toggle layout
maximize
modifieddraft
chevron_left
chevron_right

wired checkbox

wired-checkbox

Hand-drawn sketchy checkbox web component.

For demo and view the complete set of wired-elememts: wiredjs.com

Usage

Add wired-checkbox to your project:

npm i wired-checkbox

Import wired-checkbox definition into your HTML page:

<script type="module" src="wired-checkbox/lib/wired-checkbox.js"></script>

Or into your module script:

import { WiredCheckbox } from "wired-checkbox"

Use it in your web page:

<wired-checkbox>Checkbox One</wired-checkbox>
<wired-checkbox checked>Checkbox Two</wired-checkbox>
<wired-checkbox disabled>Disabled checkbox</wired-checkbox>

Properties

checked - Checked state (boolean). Default is false.

disabled - Disables the checkbox. Default value is false.

Custom CSS Properties

–wired-checkbox-icon-color Color of the checkbox. Default is currentColor.

Events

change event fired when state of the checkbox changes, i.e. the user checks/unchecks the box.

License

MIT License © Preet Shihn