Module Arod_component.Nav

Navigation header component for the Arod site.

Sticky header with navigation links, search button, and TOC breadcrumb row matching the Tailwind CSS reference design.

Icons

module I = Arod.Icons
val search_icon : Htmlit.El.html
val theme_toggle_btn : Htmlit.El.html
val nav_icon_for : string -> Htmlit.El.html option
val filter_icon_for : string -> Htmlit.El.html

Flow Line SVG

Decorative gradient line connecting nav items, visible only on desktop.

val flow_svg : Htmlit.El.html
type nav_item =
  1. | Divider
val nav_items : nav_item list
val nav_divider : unit -> Htmlit.El.html

Desktop nav divider — thin vertical line.

Desktop nav link with caret indicator.

val nav_item_el : current_page:string option -> nav_item -> Htmlit.El.html

Render a nav item (link or divider) for desktop.

val mobile_nav_divider : unit -> Htmlit.El.html

Mobile nav divider — subtle horizontal rule.

Mobile nav link — vertical list with icon + label.

val mobile_nav_item_el : current_page:string option -> nav_item -> Htmlit.El.html

Render a nav item (link or divider) for mobile.

TOC Row

val toc_row : sections:(string * string) list -> Htmlit.El.html

Search Modal

val search_filter_pill : active:bool -> string -> string -> Htmlit.El.html
val search_modal : Htmlit.El.html
val header : ?current_page:string -> ?toc_sections:(string * string) list -> Arod.Ctx.t -> Htmlit.El.html