Module Pill

Pill component for rendering a pill-shaped UI element with an optional icon and a coloured background. Uses Colour_palette for managing colours.

type t = {
  1. label : string;
  2. icon : Icon.t option;
  3. colour : Colour_palette.t;
}
val render : t -> [> Html_types.div ] Tyxml.Html.elt