@joinbox/ui-components
v2.6.6
Published
UI components for the web
Downloads
24
Readme
Re-usable UI Components for and from Joinbox
Use
- All components are custom elements.
- Make sure to use the appropriate polyfill for old browsers. If not noted otherwise, only the custom element polyfill is needed.
- Embed the JavaScript file that ends with
Element
; it defines the custom element onwindow
. - If you are using Babel, install regenerator-runtime
and import it before the elements via
import 'regenerator-runtime/runtime.js';
Components
Tools
- Split Text
- Dynamic Page Loader – use barba.js instead!
- once, import as
import { once } from '@joinbox/ui-components'
- slide, import as
import { slide } from '@joinbox/ui-components'
- createDebounce, import as
import { createDebounce } from '@joinbox/ui-components'
Tests
npm i && npm test