container

.container width:{Size? = null}
height:{Size? = null}
fullwidth:{Boolean = false}
foreground:{Color? = null}
background:{Color? = null}
border:{Color? = null}
borderwidth:{Sizes? = null}
borderstyle:{Container.BorderStyle? = null}
margin:{Sizes? = null}
padding:{Sizes? = null}
radius:{Sizes? = null}
alignment:{Container.Alignment? = null}
textalignment:{Container.Alignment? = alignment}
float:{Container.FloatAlignment? = null}
body:{MarkdownContent? = null}
-> Node

A general-purpose container that groups content. Any layout rules (e.g. from align, row, column, grid) are ignored inside this container.

Return

the new container node

Parameters

width

width of the container. No constraint if unset

height

height of the container. No constraint if unset

fullwidth

whether the container should take up the full width of the parent. Overridden by width. False if unset

foreground

text color. Default if unset

background

background color. Transparent if unset

border

border color. Default if unset and borderwidth is set

borderwidth

border width. Default if unset and border is set

borderstyle

border style. Normal (solid) if unset and border or borderwidth is set

Values

margin

whitespace outside the content. None if unset

padding

whitespace around the content. None if unset

radius

corner (and border) radius. None if unset

alignment

alignment of the content. Default if unset

Values

textalignment

alignment of the text. alignment if unset

Values

float

floating position of the container within the parent. Not floating if unset

Values

body

content to group