Installation

Get MTxFlow up and running in your project.

CDN (Script Tag)

The fastest way to get started. Include the CSS and JS bundle directly:

HTML
<link rel="stylesheet" href="path/to/mtx-flow.bundle.css">
<script src="path/to/mtx-flow.bundle.min.js"></script>

<script>
  // Everything is under window.mtx
  console.log(mtx.VERSION); // "1.0.0-alpha.1"
</script>

NPM / Yarn

Terminal
npm install @mtx/flow
# or
yarn add @mtx/flow
JavaScript (ESM)
import { State, Modal, Dom, Utils, Icons } from '@mtx/flow';

const state = new State('app');
state.set('theme', 'dark');

Bundle Sizes

FileSizeFormat
mtx-flow.bundle.min.js~21 KBIIFE (window.mtx)
mtx-flow.esm.js~37 KBES Module
mtx-flow.bundle.css~10 KBCSS