@corpuscule/element
TypeScript icon, indicating that this package has built-in type declarations

0.14.2 • Public • Published

🛠 Status: In Development

This package is currently under heavy development. Feedback is always welcome, but be careful with using it in production. API is not ready yet and can receive large changes.

@corpuscule/element

Latest Stable Version Package size

A lightweight set of decorators for creating web components. It is a decorator-based analog for Polymer's LitElement or a web components based view rendering library like React or Vue.

Features

  • Zero third-party dependencies. The package still contains Corpuscule dependencies, but no third-party library is used.
  • Renderer agnostic. You can use @corpuscule/element with any renderer you want: lit-html, hyperHTML, preact or even React. Just choose an existing renderer or create a new one and send it as a decorator option.
  • Small. According to Bundlephobia, it has following sizes:
    • Package size
    • Package size
  • Typed. Typescript typings are included.

Installation

$ npm install --save @corpuscule/element

or

$ yarn add @corpuscule/element

Documentation

API documentation is available for the following modules:

Future

There are plans to create Babel plugin that will remove guards from the production builds. Since the source of inspiration for them were PropTypes, workflow should be the same: working during development, removed in production.

Common future plans for all Corpuscule packages can be found here.

Readme

Keywords

none

Package Sidebar

Install

npm i @corpuscule/element

Weekly Downloads

1

Version

0.14.2

License

MIT

Unpacked Size

33.1 kB

Total Files

5

Last publish

Collaborators

  • lodin