Module Callout

Callout component for displaying informational messages with different variants. heading is an optional string representing the heading of the callout. When set to None, a default heading based on the variant is used. children is a list of TyXML elements representing the content of the callout.

type skeleton = {
  1. heading : string option;
  2. children : Html_types.flow5 Tyxml_html.elt list;
}
type t =
  1. | Info of skeleton
  2. | Warning of skeleton
  3. | Danger of skeleton
  4. | Tip of skeleton
  5. | Success of skeleton
val to_string : t -> string
val to_icon : t -> Icon.callout_variant
val default_heading : t -> string
val render : t -> [> Html_types.div ] Tyxml.Html.elt