myg-radio

0.13.8 • Public • Published

Radio Buttons

Usage

Stylesheets

@import "myg-radio/radio"

// Include classes (optional)
+myg__classes--radio

Javascript

import MygRadio from 'myg-radio';

document.addEventListener( 'ready', () => {
  const mygRadios = MygRadio.initAll( document.querySelectorAll('.myg-radio'), {} );
})

or

import * as myg from 'myg/src/myg';
const MygRadio = myg.MygRadio;

document.addEventListener( 'ready', () => {
  const mygRadios = MygRadio.initAll( document.querySelectorAll('.myg-radio'), {} );
})

Readme

Keywords

none

Package Sidebar

Install

npm i myg-radio

Weekly Downloads

1

Version

0.13.8

License

MIT

Unpacked Size

2.21 kB

Total Files

6

Last publish

Collaborators

  • jonhue