Tailwind classes in OCaml
1(** Base component module for Tailwind-Htmlit integration *) 2 3(** Component configuration *) 4type t 5 6(** Create a component with classes and attributes *) 7val make : 8 ?classes:Tailwind.t -> 9 ?attributes:(string * string) list -> 10 ?id:string -> 11 ?data:(string * string) list -> 12 unit -> t 13 14(** Add classes to a component *) 15val add_classes : Tailwind.t -> t -> t 16 17(** Add attributes to a component *) 18val add_attributes : (string * string) list -> t -> t 19 20(** Convert component to Htmlit attributes *) 21val to_htmlit_atts : t -> Htmlit.At.t list 22 23(** Apply component to an Htmlit element *) 24val apply : t -> Htmlit.El.html -> Htmlit.El.html 25 26(** Create a div with component styling *) 27val div : t -> Htmlit.El.html list -> Htmlit.El.html 28 29(** Create a span with component styling *) 30val span : t -> Htmlit.El.html list -> Htmlit.El.html 31 32(** Create a section with component styling *) 33val section : t -> Htmlit.El.html list -> Htmlit.El.html 34 35(** Create an article with component styling *) 36val article : t -> Htmlit.El.html list -> Htmlit.El.html