plushie/widget/space

Space widget builder (flexible space for layout).

Types

Option type for space properties.

pub type Opt {
  Width(length.Length)
  Height(length.Length)
  A11y(a11y.A11y)
}

Constructors

pub opaque type Space

Values

pub fn a11y(s: Space, a: a11y.A11y) -> Space

Set accessibility properties for this widget.

pub fn build(s: Space) -> node.Node

Build the space into a renderable Node.

pub fn height(s: Space, h: length.Length) -> Space

Set the height.

pub fn new(id: String) -> Space

Create a new space builder.

pub fn width(s: Space, w: length.Length) -> Space

Set the width.

pub fn with_opts(s: Space, opts: List(Opt)) -> Space

Apply a list of options to a space builder.

Search Document