package bonsai

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

For checkboxes and radio buttons, you can choose between having their visual display be the default native rendering, or if you want them to look like actual buttons, then the input element is hidden, and extra_attrs will be passed to each <label> per element.

type t =
  1. | Native
  2. | Button_like of {
    1. extra_attrs : checked:bool -> Bonsai_web.Vdom.Attr.t list;
    }
val barebones_button_like : t
OCaml

Innovation. Community. Security.