Components

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.

button

A simple, customizable and reactive Button component.

Documentation

empty

Visual empty state indicator.

Documentation

A customizable Module Header component.

Documentation

icon

A simple, inline Icon Element using the Icon Font available in-app.

Documentation

select

A minimal select dropdown with optional filtering.

Documentation

textfield

A sleek textfield with two different contextual variants.

Documentation