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