wired-radio
v1.0.0arrow_drop_downv1.0.0
v0.9.2
STATUS
Passing
DOWNLOADS
6
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 months ago
SIZE
12 KB
Hand-drawn sketchy radio button web component.
1 contributor
Like
Use wired-radio in your project ?
Copied
npm i @bit/wiredjs.wired-elements.wired-radio
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example 
modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout

chevron_left
chevron_right
wired-radio
Hand-drawn sketchy radio button web component. Usually used with wired-radio-group.
For demo and view the complete set of wired-elememts: wiredjs.com
Usage
Add wired-radio to your project:
npm i wired-radio
Import wired-radio definition into your HTML page:
<script type="module" src="wired-radio/lib/wired-radio.js"></script>
Or into your module script:
import { WiredRadio } from "wired-radio"
Use it in your web page:
<wired-radio>Radio One</wired-radio>
<wired-radio checked>Radio Two</wired-radio>
<wired-radio disabled>Disabled Radio</wired-radio>
Properties
checked - Checked state (boolean) of the radio button. Default is false.
disabled - disables the radio button. Default value is false.
text - Text associated with the radio button.
name - A name associated with the radio inside a radio-group.
Custom CSS Variables
–wired-radio-icon-color Color of the radio button. Default is currentColor.
Events
change - event fired when state of the radio changes, i.e. the user checks/unchecks the radio.