@corpuscule/element
v0.14.2
Published
Custom Element rendering system for Corpuscule
Downloads
11
Readme
🛠 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
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 evenReact
. 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:
- 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 guard
s 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.