Directory

← Back

wired-radio

Hand-drawn sketchy radio button

Author

Rating

Popularity

<100

[ This description is mirrored from README.md at github.com/wiredjs/wired-radio on 2019-05-10 ]

wired radio

wired-radio

Hand-drawn sketchy radio button web component.

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

Learn about web components here.

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/wired-radio.js"></script>

Or into your module script:

import { WiredRadio } from "wired-radio"

Use it in your web page:

<wired-radio text="Radio One"></wired-radio>
<wired-radio text="Radio Two" checked></wired-radio>
<wired-radio text="Radio disabled" disabled></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.

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

  • polymer#Polymer/polymer#^2.0.0
  • wired-lib#^0.1.0
Released
2017-08-30
Maturity
IMPORTED
License
MIT License

Compatibility

Framework
Polymer 2.0+
Browser
Browser Independent

wired-radio - Vaadin Add-on Directory

Hand-drawn sketchy radio button wired-radio - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/wiredjs/wired-radio](https://github.com//wiredjs/wired-radio/blob/v0.5.1/README.md) on 2019-05-10 ]** ![wired radio](https://wiredjs.github.io/wired-elements/images/radio.png) # wired-radio Hand-drawn sketchy radio button web component. For demo and view the complete set of wired-elememts: [wiredjs.com](http://wiredjs.com/) Learn about web components [here](https://www.webcomponents.org/introduction). ## Usage Add wired-radio to your project: ``` npm i wired-radio ``` Import wired-radio definition into your HTML page: ```html ``` Or into your module script: ```javascript import { WiredRadio } from "wired-radio" ``` Use it in your web page: ```html ``` ### 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.
Online