Skip to content

five-on-it / apps/client/src/gui/layout / BoxSpec

Interface: BoxSpec ​

Defined in: apps/client/src/gui/layout.ts:104

A box with a background holding blocks stacked; it fills the width, or fits its content.

Properties ​

align? ​

optional align?: "start" | "end" | "center"

Defined in: apps/client/src/gui/layout.ts:112

Where a fitted box sits across the width.


blocks ​

blocks: Block[]

Defined in: apps/client/src/gui/layout.ts:108


box ​

box: BoxStyle

Defined in: apps/client/src/gui/layout.ts:107


fit? ​

optional fit?: boolean

Defined in: apps/client/src/gui/layout.ts:110

As narrow as its content allows instead of the whole width.


gap? ​

optional gap?: number

Defined in: apps/client/src/gui/layout.ts:114

The gap between its blocks (px; the middle gap by default).


id? ​

optional id?: string

Defined in: apps/client/src/gui/layout.ts:106


kind ​

kind: "box"

Defined in: apps/client/src/gui/layout.ts:105


tags? ​

optional tags?: string[]

Defined in: apps/client/src/gui/layout.ts:116

Marks the tests can read (a container's kind).