Columns

The <Columns> component arranges content in a responsive grid layout with 1–4 columns. Collapses to a single column on viewports below 640px.

Basic two-column layout

Code

import { Columns, Column } from '@theme'

<Columns>
  <Column>

**Installation**

```bash
pnpm add ciderpress
```

  </Column>
  <Column>

**Usage**

```bash
pnpm ciderpress build
```

  </Column>
</Columns>

Output

Installation

Run pnpm add ciderpress

Usage

Run pnpm ciderpress build

Three columns

Code

<Columns cols={3}>
  <Column>

### Fast

Sub-second HMR with Rspress.

  </Column>
  <Column>

### Typed

Zod-validated config with IntelliSense.

  </Column>
  <Column>

### Themed

Three built-in themes, fully customizable.

  </Column>
</Columns>

Output

Fast

Sub-second HMR with Rspress.

Typed

Zod-validated config with IntelliSense.

Themed

Three built-in themes, fully customizable.

Four columns

<Columns cols={4}>
  <Column>Column 1</Column>
  <Column>Column 2</Column>
  <Column>Column 3</Column>
  <Column>Column 4</Column>
</Columns>

Columns props

PropTypeRequiredDefaultDescription
cols1 | 2 | 3 | 4no2Number of grid columns
childrenReactNodeyesGrid content — raw children or Column wrappers

Column props

PropTypeRequiredDefaultDescription
childrenReactNodeyesContent for the grid cell