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
Content copied to clipboard
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
- Optional
- Likely named
width of the container. No constraint if unset
height
- Optional
- Likely named
height of the container. No constraint if unset
foreground
- Optional
- Likely named
text color. Default if unset
background
- Optional
- Likely named
background color. Transparent if unset
border
- Optional
- Likely named
border color. Default if unset and borderwidth is set
margin
- Optional
- Likely named
whitespace outside the content. None if unset
padding
- Optional
- Likely named
whitespace around the content. None if unset
radius
- Optional
- Likely named
corner (and border) radius. None if unset
textdecoration
textcase
body
- Likely a body argument
- Optional
content to group