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)}
float:{Container.FloatAlignment? = null}
body:{MarkdownContent? = null}
-> Node
Content copied to clipboard
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
- 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
body
- Likely a body argument
- Optional
content to group