Components
Documentation contentCard
Use card for a bordered surface with elevation. Children stack on top of each other, so place a column or row inside for flow layout. The element rejects gap. Default padding is 24px, or 16px at size="sm"; set padding to override it. on-press makes the whole card pressable. Use panel for a surface without the card treatment.
card

Markup
Programmatic construction (Zig)
In a Zig view, the canvas.Ui builder constructs the same tree programmatically:
Attributes
| Attribute | Description |
|---|---|
text | Text value for text-bearing elements; a literal or one {binding}. |
padding | Uniform padding (plain number). |
width | Definite width (plain number): the element is exactly this wide; content neither shrinks nor overflows it. On resizable it is the initial width. |
on-press | Dispatch a Msg on press: tag or tag:{payload}. Legal on any element — a bound press handler makes it pressable, and presses on plain text/icons inside it fall through to it (dragging still selects text). |
