Skip to main content
Column arranges children vertically. Use gap to control spacing between items.

Basic Usage

Gap

Alignment

In a Column, align controls horizontal alignment. The difference is visible when children have different widths.

API Reference

Column Parameters

gap
int | tuple | None
default:"None"
Gap between children. An int maps to gap-{n}. A tuple (x, y) sets per-axis gaps; use None to skip an axis.
align
str | None
default:"None"
Cross-axis alignment: "start", "center", "end", "stretch", "baseline".
justify
str | None
default:"None"
Main-axis distribution: "start", "center", "end", "between", "around", "evenly", "stretch".
css_class
str | None
default:"None"
Additional Tailwind CSS classes.

Protocol Reference

Column
{
  "type": "Column",
  "children?": "[Component]",
  "gap?": "number | Action[]",
  "align?": "start | center | end | stretch | baseline",
  "justify?": "start | center | end | between | around | evenly | stretch",
  "cssClass?": "string"
}
For the complete protocol schema, see Column.