package virtual_dom

  1. Overview
  2. Docs

The values associated with an Element and element like nodes. (that is in practice all nodes that aren't just text).

type t
val tag : t -> Base.string
val attrs : t -> Virtual_dom__.Attr.t Base.list
val map_attrs : t -> f:(Virtual_dom__.Attr.t Base.list -> Virtual_dom__.Attr.t Base.list) -> t
val add_style : t -> Css_gen.t -> t
val add_class : t -> Base.string -> t
OCaml

Innovation. Community. Security.