myg-button
v0.13.8
Published
Myg buttons component.
Downloads
7
Readme
Buttons
Usage
Stylesheets
@import "myg-button/button"
// Include classes (optional)
+myg__classes--button
// Include mappings (optional)
+myg__mappings--button
Javascript
import MygButton from 'myg-button';
document.addEventListener( 'ready', () => {
const mygButtons = MygButton.initAll( document.querySelectorAll('.myg-button'), {} );
})
or
import * as myg from 'myg-src/myg';
const MygButton = myg.MygButton;
document.addEventListener( 'ready', () => {
const mygButtons = MygButton.initAll( document.querySelectorAll('.myg-button'), {} );
})