Directory

← Back

wired-elements

Collection of custom elements that appear hand drawn. Great for wireframes or a fun look.

Author

Contributors

Rating

wired radio

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.

License

MIT License (c) Preet Shihn

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

  • wired-lib#^1.0.0-alpha.0
Released
2019-04-24
Maturity
IMPORTED
License
MIT License

Compatibility

Framework
Polymer 3.0+ in 0.8.0-0
Browser
Browser Independent

wired-elements - Vaadin Add-on Directory

Collection of custom elements that appear hand drawn. Great for wireframes or a fun look. wired-elements - Vaadin Add-on Directory
![wired radio](https://wiredjs.github.io/wired-elements/images/radio.gif) # wired-radio Hand-drawn sketchy radio button web component. Usually used with [wired-radio-group](https://github.com/wiredjs/wired-elements/tree/master/packages/wired-radio-group). For demo and view the complete set of wired-elememts: [wiredjs.com](http://wiredjs.com/) ## 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 Radio One Radio Two Disabled 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. ## License [MIT License](https://github.com/wiredjs/wired-elements/blob/master/LICENSE) (c) [Preet Shihn](https://twitter.com/preetster)
Online