Module Skyline_input_v1Source

Sourcemodule type S = sig ... end
Sourcetype 'a t

A common type implemented by skyline input elements.

Sourceval create : Bonsai_web.Vdom.Node.t Bonsai_web.Bonsai.t -> 'a Bonsai_web.Bonsai.t -> ('a -> unit Bonsai_web.Effect.t) Bonsai_web.Bonsai.t -> 'a t Bonsai_web.Bonsai.t

Create a custom input element with the given view and state.

Sourceval view : _ t -> Bonsai_web.Vdom.Node.t

The input elements view that can be rendered in a UI.

Sourceval value : 'a t -> 'a

Current value in the input.

Sourceval update : 'a t -> 'a -> unit Bonsai_web.Effect.t

Update the value in the input.