Module Skyline_divider_v1Source

Divider

Dividers are used to visually separate multiple elements in a UI. There are different styles of divider which can be used for items that are either arranged vertically or horizontally.

Usage

Example

  Skyline.Divider.horizontal ()
Sourceval horizontal : ?attrs:Bonsai_web.Vdom.Attr.t list -> ?length:Css_gen.Length.t -> unit -> Bonsai_web.Vdom.Node.t

A horizontal hairline. By default the line has length=100%, but for some containers an explicit length is required.

  • ?attrs - additional HTML attributes (default )
  • ?length - the width of the line (default 100%)

Hairlines can be used to separate most types of content.

Sourceval vertical : ?attrs:Bonsai_web.Vdom.Attr.t list -> ?length:Css_gen.Length.t -> unit -> Bonsai_web.Vdom.Node.t

A vertical hairline. By default the line has length=100%, but for some containers an explicit length is required.

  • ?attrs - additional HTML attributes (default )
  • ?length - the height of the line (default 100%)

Hairlines can be used to separate most types of content.

A centered dot ยท that can e.g. be used in-between textual items in a horizontal list.

To separate elements that are much bigger than a single line of text, a vertical hairline might be a better choice.

A forward slash / that can e.g. be used in-between textual items in a path.

This type of divider should typically only be used to separate text.

Sourcemodule For_docs : sig ... end