container

.container width:{Size? = null} \
height:{Size? = null} \
fullwidth:{Boolean = false} \
float:{Container.FloatAlignment? = null} \
fullspan:{Boolean = false} \
classname:{String? = null} \
foreground:{Color? = null} \
background:{Color? = null} \
border:{Color? = null} \
borderwidth:{Sizes? = null} \
borderstyle:{NodeStyle.BorderStyle? = null} \
alignment:{NodeStyle.Alignment? = null} \
textalignment:{NodeStyle.TextAlignment? = null} \
margin:{Sizes? = null} \
padding:{Sizes? = null} \
radius:{Sizes? = null} \
fontsize:{TextTransformData.Size? = null} \
fontweight:{TextTransformData.Weight? = null} \
fontstyle:{TextTransformData.Style? = null} \
fontvariant:{TextTransformData.Variant? = null} \
textdecoration:{TextTransformData.Decoration? = null} \
textcase:{TextTransformData.Case? = null} \
body:{MarkdownContent? = null}
-> Node

A general-purpose container that groups content.

Any active layout rules inherited by the parent (e.g. from align, row, column, grid) are reset 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
  • Optional

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

float

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

Values

fullspan
  • Optional

whether the container should span across all columns in a multi-column layout. False if unset

classname
  • Optional

CSS class name to apply to the container, if supported by the renderer. None if unset

body

content to group

foreground
  • Optional

text color. Default if unset

background
  • Optional

background color. Transparent if unset

border
  • Optional

border color. Default if unset and borderwidth is set

borderwidth
  • Optional

border width. Default if unset and border is set

borderstyle
  • Optional

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

Values

alignment

alignment of the content. Default if unset

Values

textalignment
  • Optional

alignment of the text. alignment if unset

Values

margin
  • Optional

whitespace outside the content. None if unset

padding
  • Optional

whitespace around the content. None if unset

radius
  • Optional

corner (and border) radius. None if unset

fontsize
  • Optional

relative font size of the text. Normal if unset

Values

fontweight
  • Optional

font weight of the text. Normal if unset

Values

fontstyle
  • Optional

font style of the text. Normal if unset

Values

fontvariant
  • Optional

font variant of the text. Normal if unset

Values

textdecoration
  • Optional

text decoration of the text. None if unset

Values

textcase
  • Optional

text case of the text. Normal if unset

Values

Wiki page

container