myg-text

0.13.8 • Public • Published

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'), {} );
})

Readme

Keywords

none

Package Sidebar

Install

npm i myg-text

Weekly Downloads

0

Version

0.13.8

License

MIT

Unpacked Size

8.01 kB

Total Files

8

Last publish

Collaborators

  • jonhue