@pluginjs/component

0.8.9 • Public • Published

Component

npm package

A flexible modern component js plugin.

Samples

Introduction

Installation

Yarn

yarn add @pluginjs/component

NPM

npm i @pluginjs/component

Getting Started

CDN:

Development:

<script src="https://unpkg.com/@pluginjs/component/dist/component.js"></script>

Production:

<script src="https://unpkg.com/@pluginjs/component/dist/component.min.js"></script>

Initialize

HTML:

<div class="element"></div>

ECMAScript Module:

import Component from "@pluginjs/component"

Component.of(document.querySelector('.element'), options)

CommonJS:

const Component = require("@pluginjs/component")

Component.of(document.querySelector('.element'), options)

Browser:

<script src="https://unpkg.com/@pluginjs/component/dist/component.js"></script>
<script>
  Pj.component('.element', options)
</script>

API

Browser support

Tested on all major browsers.

IE / EdgeIE / Edge FirefoxFirefox ChromeChrome SafariSafari OperaOpera
IE11, Edge last 2 versions last 2 versions last 2 versions last 2 versions

License

@pluginjs/component is Licensed under the GPL-v3 license.

If you want to use @pluginjs/component project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.

For purchase an Commercial License, contact us purchase@thecreation.co.

Copyright

Copyright (C) 2022 Creation Studio Limited.

Readme

Keywords

none

Package Sidebar

Install

npm i @pluginjs/component

Homepage

pluginjs.com

Weekly Downloads

14

Version

0.8.9

License

GPL-3.0

Unpacked Size

12.9 kB

Total Files

9

Last publish

Collaborators

  • thecreation
  • kaptinlin