mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
34 lines
1013 B
Plaintext
34 lines
1013 B
Plaintext
---
|
|
title: 'Columns'
|
|
description: 'Show elements side by side'
|
|
keywords: ['card groups', 'grid layout', 'multi-column layout']
|
|
---
|
|
|
|
The `Columns` component lets you group multiple `Card` components together. It's most often used to put cards in a grid, by specifying the number of grid columns. 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>
|
|
```
|
|
|
|
## Properties
|
|
|
|
<ResponseField name="cols" type="number" default={2}>
|
|
The number of columns per row. Accepts values from 1 to 4.
|
|
</ResponseField>
|