Module Skyline_placeholder_v1Source

Sourceval component : ?action:(string * unit Bonsai_web.Effect.t) -> ?intent:Skyline_theme_v1.Color.t -> icon:Codicons.t -> string -> Bonsai_web.Vdom.Node.t

component ~intent ~icon label renderes a placeholder element that can be used for empty states (but that also works e.g. for an error state).

Sourceval error : ?action:(string * unit Bonsai_web.Effect.t) -> ?intent:Skyline_theme_v1.Color.t -> ?icon:Codicons.t -> Core.Error.t -> Bonsai_web.Vdom.Node.t

A specialized placeholder component that displays an error. This is ethically equivalent to component ~intent:Error ~icon:Error (Error.to_string_hum error).