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,
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.
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.