Header Component #

The Header Component is a stylised, pre-made Module Header that can be used via the header Component.

Properties #

  • colour - The background colour for the Header. Defaults to #000000.
  • icon - An optional Icon to display in the Header. Available Icons can be found here.

Examples #

Top Donations

$header = window.casthub.create('header');
$header.icon = 'streamlabs';
$header.colour = '#31c3a2';
$header.innerText = 'Top Donations';

Latest Subscribers

$header = window.casthub.create('header');
$header.icon = 'twitch';
$header.colour = '#4b367c';
$header.innerText = 'Latest Subscribers';