myg-checkbox

0.13.8 • Public • Published

Checkboxes

Usage

Stylesheets

@import "myg-checkbox/checkbox"
 
// Include classes (optional)
+myg__classes--checkbox

Javascript

import MygCheckbox from 'myg-checkbox';
 
document.addEventListener( 'ready', () => {
  const mygCheckboxes = MygCheckbox.initAll( document.querySelectorAll('.myg-checkbox'), {} );
})

or

import * as myg from 'myg/src/myg';
const MygCheckbox = myg.MygCheckbox;
 
document.addEventListener( 'ready', () => {
  const mygCheckboxes = MygCheckbox.initAll( document.querySelectorAll('.myg-checkbox'), {} );
})

Readme

Keywords

none

Package Sidebar

Install

npm i myg-checkbox

Weekly Downloads

43

Version

0.13.8

License

MIT

Unpacked Size

2.34 kB

Total Files

6

Last publish

Collaborators

  • jonhue