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?
optionalalign?:"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?
optionalfit?:boolean
Defined in: apps/client/src/gui/layout.ts:110
As narrow as its content allows instead of the whole width.
gap?
optionalgap?:number
Defined in: apps/client/src/gui/layout.ts:114
The gap between its blocks (px; the middle gap by default).
id?
optionalid?:string
Defined in: apps/client/src/gui/layout.ts:106
kind
kind:
"box"
Defined in: apps/client/src/gui/layout.ts:105
tags?
optionaltags?:string[]
Defined in: apps/client/src/gui/layout.ts:116
Marks the tests can read (a container's kind).