Files
mintlify__docs/components/columns.mdx
skeptrune 9200586a3a Boost search ranking for single-word title pages (#5670)
* docs: boost search ranking for single-word title pages

Apply `boost: 3` to English pages whose H1 / frontmatter title is a single word (e.g. "Assistant", "Quickstart", "Cards"). Short titles tend to be canonical landing pages for a topic, so users searching the exact term should land on them first.

* docs: drop boost on websocket-playground stub to keep canonical Playground ranking

`api-playground/websocket-playground.mdx` is an auto-generated AsyncAPI stub with no body content but shares the title "Playground" with `api-playground/overview.mdx`. Boosting both equally diluted the canonical overview page in search for the query "playground". Drop the boost on the stub.
2026-05-05 10:30:58 -07:00

85 lines
1.9 KiB
Plaintext

---
title: 'Columns'
description: "Arrange cards and other components in a responsive multi-column grid layout with the columns component, including customizable column counts."
keywords: ['card groups', 'grid layout', 'multi-column layout']
boost: 3
---
The `Columns` component lets you arrange content in a responsive grid layout. It's most often used to put cards in a grid, by specifying the number of grid columns. You can also use the `Column` sub-component to wrap arbitrary content. Columns are responsive and automatically adjust for smaller screens.
<Columns cols={2}>
<Card title="Get started" icon="rocket">
Set up your project with our quickstart guide.
</Card>
<Card title="API reference" icon="code">
Explore endpoints, parameters, and examples for your API.
</Card>
</Columns>
```mdx Columns example
<Columns cols={2}>
<Card title="Get started">
Set up your project with our quickstart guide.
</Card>
<Card title="API reference">
Explore endpoints, parameters, and examples for your API.
</Card>
</Columns>
```
## Column sub-component
Use the `Column` component to wrap text or code in individual columns. This is useful when you want to display arbitrary content side by side, not just cards or other components.
<Columns cols={2}>
<Column>
**Installation**
```bash
npm install my-package
```
</Column>
<Column>
**Usage**
```javascript
import { init } from 'my-package';
init();
```
</Column>
</Columns>
````mdx Column sub-component example
<Columns cols={2}>
<Column>
**Installation**
```bash
npm install my-package
```
</Column>
<Column>
**Usage**
```javascript
import { init } from 'my-package';
init();
```
</Column>
</Columns>
````
## Properties
<ResponseField name="cols" type="number" default={2}>
The number of columns per row. Accepts values from 1 to 4.
</ResponseField>