Skip to content

Layout

Divider

divider is a thin line between parts: across a column, or upright between the parts of a row with vertical: true.

Examples

Across a column

list slots, bind_index: :slot
divider
text slot_summary

A line between a list and a text

Upright in a row

stack row: true do
  button "Rest", on_click: -> { rest }
  divider vertical: true
  button "Leave", on_click: -> { leave }
end

An upright line between two buttons

A color and a thickness

divider color: :gold, thickness: 2

A gold line two pixels thick

Params, events and keys

Every part also takes the params every part takes.

A thin line between parts: across a column, or upright in a row with vertical: true.

Written divider ....

Param Takes Default Live About
vertical: true, false false true draws it upright, between parts of a row
color: a color name such as :primary or :rainbow, "#RRGGBB", [r, g, b] or a game text color such as 2 :edge its color
thickness: a whole number 1 how many pixels thick it is

Keys: none

Mouse: none

Something went wrong. Reload

Connection interrupted

The site keeps trying to reconnect.

Reconnecting…

Could not reconnect. Trying again in seconds.

Could not reconnect. Retry now or reload the page.

The page was paused.

Could not continue. Retry now or reload the page.