View Source BackBreeze.Box (BackBreeze v0.2.1)

A Box is the basic styling primitive used in BackBreeze. If a box has children, they will be rendered first and collapsed down, until a single box remains with the rendered contents.

Summary

Functions

Create a new BackBreeze.Box struct.

Render a box and a tree of its children.

Functions

Create a new BackBreeze.Box struct.

Options

  • :style - a style map, with any valid keys from BackBreeze.Style. The :border style can be provided as :line for convenience.

All other options are passed to the BackBreeze.Box struct.

Render a box and a tree of its children.

Options

  • :offset_top - number of columns to offset from the top.
  • :terminal - the terminal to use. This is used for the terminal size if provided.