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
Add wired-radio to your project:
npm i wired-radio
Import wired-radio definition into your HTML page:
Or into your module script:
Use it in your web page:
Radio OneRadio TwoDisabled Radio
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.
change - event fired when state of the radio changes, i.e. the user checks/unchecks the radio.