A collection of web components / custom elements from KernValley.US
To ensure compatibility, please install @shgysk8zer0/polyfills
or use https://unpkg.com/@shgysk8zer0/polyfills/all.min.js
.
You don't have to install anything, but you can.
npm i @kernvalley/components
You can also just load everything from https://unpkg.com/@kernvalley/components/
.
import '@kernvalley/components/events.js';
customElements.whenDefined('krv-events').then(KRVEvents => {
const cal = new KRVEvents();
document.querySelector('.container').append(cal);
});
<script type="module" src="https://unpkg.com/@kernvalley/components/events.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<krv-events></krv-events>
import '@kernvalley/components/wfd/events.js';
customElements.whenDefined('wfd-events').then(WFDEvents => {
const cal = new WFDEvents();
document.querySelector('.container').append(cal);
});
<script type="module" src="https://unpkg.com/@kernvalley/components/wfd/events.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<wfd-events></wfd-events>