⌂
›
Reference
›
Container
Container
A single-child layout surface for spacing, sizing, alignment, and decoration.
Example
container(
padding: 16,
margin: 12,
border_radius: 12,
bgcolor: "#111827",
content: text(value: "Card content")
)
Common properties
contentpaddingmarginwidthheightexpandbgcolorborderborder_radiusalignmenton_click
Usage
Use container when a control needs its own box, spacing, or click surface:
container(
expand: true,
alignment: "center",
content: text(value: "Centered")
)
Notes
containertakes one nested child throughcontent:alignment: "center"is normalized by Ruflet for convenience