gap to control spacing between items.
Basic Usage
Gap
- gap=4
- gap=8
- gap=12
Alignment
In a Column,align controls horizontal alignment. The difference is visible when children have different widths.
- align="start"
- align="center"
- align="end"
API Reference
Column Parameters
Gap between children. An int maps to
gap-{n}. A tuple (x, y) sets per-axis gaps; use None to skip an axis. A Responsive() sets different gaps at different breakpoints.Cross-axis alignment:
"start", "center", "end", "stretch", "baseline".Main-axis distribution:
"start", "center", "end", "between", "around", "evenly", "stretch".Additional Tailwind CSS classes. A
Responsive() compiles breakpoint-prefixed classes.Protocol Reference
Column