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.TextAlignment? = alignment?.let(Container.TextAlignment::fromAlignment)}
fontsize:{TextTransformData.Size? = null}
fontweight:{TextTransformData.Weight? = null}
fontstyle:{TextTransformData.Style? = null}
fontvariant:{TextTransformData.Variant? = null}
textdecoration:{TextTransformData.Decoration? = null}
textcase:{TextTransformData.Case? = null}
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

fontsize

relative font size of the text. Normal if unset

Values

fontweight

font weight of the text. Normal if unset

Values

fontstyle

font style of the text. Normal if unset

Values

fontvariant

font variant of the text. Normal if unset

Values

textdecoration

text decoration of the text. None if unset

Values

textcase

text case of the text. Normal if unset

Values

float

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

Values

body

content to group

Wiki page

Container