Module Component

Components are the building blocks of my website. Each component is a module, typically with a corresponding type and render function. The type t represents the component itself as a literal OCaml value while render converts it into a TyXML node.

type t =
  1. | Markdown of Markdown.t
  2. | Headliner of Headliner.t
  3. | Text of Text.t
  4. | Navbar of Navbar.t
  5. | Footer of Footer.t
  6. | Callout of Callout.t
  7. | Announcement_banner of Announcement_banner.t
  8. | Listing of Listing.t
  9. | Icon of Icon.t
  10. | Property_row of Property_row.t
  11. | Section of Section.t
  12. | Pill of Pill.t
val render : t -> [> `Div | `Footer | `Nav | `Section ] Tyxml.Html.elt