myg-radio
v0.13.8
Published
Myg radio input component
Downloads
51
Readme
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'), {} );
})