Modules have access to some pre-made Stock Elements maintained by CastHub. This helps to keep the general theme of CastHub aligned as well as help speed-up prototyping.
All Stock Elements are instances of
window.casthub.module and as such can be extended as the main export of a Module. They all live within the
window.casthub.elements namespace, for example,
Renders a counter with a background chart and optional label.
Shows a customiseable, reactive Items List with Avatar support.
Shows a Media Player with Album cover, useful for playing remote Media. An example of this is the Spotify Player Module.
A simple OFFLINE/LIVE indicator with some customisability for showing the status of a Livestream.
Shows an Avatar with various Labels/Counts, useful for things like showing Followers/Subscribers/Views. Examples of this include the Twitch, Mixer and YouTube User Modules.