Use Columns when related content should be scanned together, such as choices, comparisons, checklists, or a small grid of cards. Each column must be wrapped in a Column component.
Structure
Columns accepts either two or three columns. It does not create multiple rows automatically. If you need another row, add another Columns block.
Three columns
Set columns={3} for compact summaries or groups of similarly sized items.
Rich content
Columns can contain normal Markdown or other docs components. This is especially useful for placing cards side by side.
You can also mix components with plain Markdown.
Responsive behavior
Columns respond to the width of the component, not just the width of the screen. This keeps layouts predictable when the docs content area changes size.
Two-column layouts collapse to one column when the component becomes narrow. Three-column layouts collapse earlier so each column has enough room to remain readable.
Props
Columns
| Prop | Type | Default | Description |
|---|---|---|---|
columns | 2 or 3 | 2 | Number of columns in the row. The component must contain exactly this many Column children. |
Column
Column does not accept props. Use it only as a direct child of Columns.