We expose some Web Components to Modules directly from the CastHub App itself. By doing this, we aim to aid in Module prototyping, as well as allowing Module Developers to create Modules that are in-line with the App Design and branding if they choose to do so.
Whilst these Components are technically Web Components, we still recommend using the
window.casthub.create() helper to create them. There are some caveats to using our Web Components inside of Modules which using this helper solves by applying patches automatically.
A simple, customiseable and reactive Button component.
A customiseable Module Header component.
A simple, inline Icon Element using the Icon Font available in-app.
A sleek textfield with two different contextual variants.