0.8.0 • Published 8 months ago

@kamiapp/collection v0.8.0

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

<kami-collection>

This packages containe and declare all Kami components.

Install

$ npm install --save @kamiapp/collection

Usage

You can just import the package into your main js file :

import '@kamiapp/collection';

This declare all kami components using theirs default tag.

Or you can import each component and redefine it with your tag.

// ES6 Modules or TypeScript
import { KamiFlash, KamiInfiniteList } from '@kamiapp/collection'

// register the component with the name you want
window.customElements.define('flash-element', KamiFlash);

// Or register the component with the default tag
window.customElements.define(KamiInfiniteList.tag, KamiInfiniteList);

You can get more informations about each components into the packages/<component-name> directory.