Socket
Socket
Sign inDemoInstall

wired-radio

Package Overview
Dependencies
5
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wired-radio

Hand-drawn sketchy radio button - web component


Version published
Weekly downloads
32
increased by39.13%
Maintainers
1
Install size
1.64 MB
Created
Weekly downloads
 

Changelog

Source

[1.0.0] - April 24, 2019

  • New component: wired-fab mimics the floating action button proposed in Material design
  • New component: wired-spinner to show pending progress in a sketchy way
  • New component: wired-tabs wired tabs
  • Selection in Combo and List is now shown with a sketchy zig-zag fill in the style of rough.js wired combo
  • Sketchy fill also applied to progress boxes
  • Better Accessibility on all components
  • Refactored code to use TypeScript and latest Lit Element

Readme

Source

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

Keywords

FAQs

Last updated on 24 Apr 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc