Module Interest_header

Interest header component for displaying an interest with a title, icon, colour, and description. Used on the homepage and interests page. Uses the Colour_palette for colour styling.

type colour = Colour_palette.t
type t = {
  1. title : string;
  2. icon : Icon.t;
  3. colour : colour;
  4. description : string;
}
val colour_to_style : Colour_palette.t -> [> `Style_Attr ] Tyxml.Html.attrib
val render : t -> [> Html_types.div ] Tyxml.Html.elt