@scoped-elements/quill
v0.1.3
Published
Quill packaged using the scoped custom elements registries pattern of @open-wc/scoped-elements
Downloads
15
Readme
@scoped-elements/quill
This webcomponent follows the open-wc recommendation.
Installation
npm i @scoped-elements/quill
Usage
As an sub element in your own custom element
import { QuillSnow } from '@scoped-elements/quill';
import { ScopedElementsMixin } from '@open-wc/scoped-elements';
export class CustomElement extends ScopedElementsMixin(LitElement) {
static get scopedElements() {
return {
'quill-snow': QuillSnow
};
}
render() {
return html`
<quill-snow></quill-snow>
`;
}
}
As a globally defined custom element
import { QuillSnow } from '@scoped-elements/quill';
customElements.define('quill-snow', QuillSnow);
Documentation for the elements
As this package is just a re-export, you can find the documentation for Quill here. API documentation for is yet to be done.