---
title: "Pipes"
description: "Pipes grow cell by cell on a grid, turn at ball joints, and never cross. The stage clears and starts again when it fills. On a canvas."
url: https://gelatinui.com/components/pipes
markdown_url: https://gelatinui.com/components/pipes.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/pipes"
version: "2026-11-11"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Pipes

> Pipes grow cell by cell on a grid, turn at ball joints, and never cross. The stage clears and starts again when it fills. On a canvas.

Page: https://gelatinui.com/components/pipes

## When to use it

Best for: A retro scene of pipes that grow on a grid, behind a screensaver or a wall display.

- Use `cell` and `width` for the grid step and the pipe width.
- Use `speed` for the cells a second, and `pipes` for how many grow at once.

## When not to use it

- For a calm star background, use [Starfield](https://gelatinui.com/components/starfield.md).
- For soft lines that drift, use [Ribbons](https://gelatinui.com/components/ribbons.md).

## Notes for agents

- It draws on a canvas that fills its box: give the box a size.
- A new prop starts the scene again.
- It stops off screen and in a hidden tab, and starts again when 70% of the grid is full.

## Anatomy

```text
Pipes
```

## API reference

### Pipes

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `width` | `number` | 12 | The pipe width, in px. Default 12. |
| `cell` | `number` | 32 | The grid step, in px. Default 32. |
| `pipes` | `number` | 6 | How many pipes grow at once. Default 6. |
| `turn` | `number` | 0.3 | The chance to turn at each cell, 0 to 1. Default 0.3. |
| `speed` | `number` | 12 | How fast each pipe grows, in cells per second. Default 12. |
| `colors` | `readonly string[]` | AURORA_COLORS | The pipe colors, one per pipe in turn (any CSS color). Default: the aurora. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| Pipes | `pipes` |  |  |  |

## Usage

Put Pipes in a box with a size.

```tsx title="pipe-stage.tsx"
import { Pipes } from "@/components/pro/screensavers/pipes";

export function PipeStage() {
  return (
    <div className="h-80 overflow-hidden rounded-2xl bg-neutral-950">
      <Pipes cell={32} width={12} />
    </div>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/pipes
```

It adds 28 registry items: 27 files, 2695 lines, and the npm packages `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Screensaver](https://gelatinui.com/components/screensaver.md)
- [Starfield](https://gelatinui.com/components/starfield.md)
- [Ribbons](https://gelatinui.com/components/ribbons.md)
- [Marquee](https://gelatinui.com/components/marquee.md)
- [Border Beam](https://gelatinui.com/components/border-beam.md)

## Motion

| Part | Motion |
| --- | --- |
| Start over | theme · the full stage fades out, then the grid starts again |
| Growth | none · a new segment draws at `speed` cells a second |
