Skyline_placeholder_v1Sourceval component :
?action:(string * unit Bonsai_web.Effect.t) ->
?intent:Skyline_theme_v1.Color.t ->
icon:Codicons.t ->
string ->
Bonsai_web.Vdom.Node.tcomponent ~intent ~icon label renderes a placeholder element that can be used for empty states (but that also works e.g. for an error state).
val error :
?action:(string * unit Bonsai_web.Effect.t) ->
?intent:Skyline_theme_v1.Color.t ->
?icon:Codicons.t ->
Core.Error.t ->
Bonsai_web.Vdom.Node.tA specialized placeholder component that displays an error. This is ethically equivalent to component ~intent:Error ~icon:Error (Error.to_string_hum error).