Skyline_flex_v1SourceHelpers for display: flex containers, similar to View.hbox and View.vbox, but using the terminology from CSS.
Also see the flex-box guide.
val row :
?attrs:Bonsai_web.Vdom.Attr.t list ->
?reverse:bool ->
?wrap:Wrap.t ->
?justify:Justify.t ->
?align:Align.t ->
?gap:Css_gen.Length.t ->
?padding:Css_gen.Length.t ->
Bonsai_web.Vdom.Node.t list ->
Bonsai_web.Vdom.Node.tA flex-box container with flex-direction: row (or row-reverse), laying out items left-to-right (or right-to-left).
Also see the flex-box guide.
val column :
?attrs:Bonsai_web.Vdom.Attr.t list ->
?reverse:bool ->
?wrap:Wrap.t ->
?justify:Justify.t ->
?align:Align.t ->
?gap:Css_gen.Length.t ->
?padding:Css_gen.Length.t ->
Bonsai_web.Vdom.Node.t list ->
Bonsai_web.Vdom.Node.tA flex-box container with flex-direction: column (or column-reverse), laying out items top-to-bottom (or bottom-to-top).
Also see the flex-box guide.