myg-input
Version:
Myg input (and textarea) component.
37 lines (25 loc) • 590 B
Markdown
```sass
@import "myg-input/input"
// Include classes (optional)
+myg__classes--input
// Include mappings (optional)
+myg__mappings--input
```
```js
import MygInput from 'myg-input';
document.addEventListener( 'ready', () => {
const mygInputs = MygInput.initAll( document.querySelectorAll('.myg-input'), {} );
})
```
or
```js
import * as myg from 'myg/src/myg';
const MygInput = myg.MygInput;
document.addEventListener( 'ready', () => {
const mygInputs = MygInput.initAll( document.querySelectorAll('.myg-input'), {} );
})
```