Module Skyline_tabs_v1Source

Sourcemodule type Tab = sig ... end
Sourcetype 'tab t
Sourceval component : (module Tab with type t = 'tab) -> ?state: ('tab Bonsai_web.Bonsai.t * ('tab -> unit Bonsai_web.Effect.t) Bonsai_web.Bonsai.t) -> ?notifications:('tab, _) Core.Set.t Bonsai_web.Bonsai.t -> ?secondary:'tab list Bonsai_web.Bonsai.t -> 'tab Core.Nonempty_list.t Bonsai_web.Bonsai.t -> Bonsai_web.Bonsai.graph @ local -> 'tab t Bonsai_web.Bonsai.t

Construct a tabs component which can be used to render a list of tabs and retrive the currently active tab.

Sourceval current : 'tab t -> 'tab

The currently active tab.

Sourceval change : 'tab t -> 'tab -> unit Bonsai_web.Effect.t

Update the current tab.

Renders the list of tabs.