# Ink Bleed Carousel (Pro)

> A carousel where the next photo soaks into the current one like ink through wet paper. A ragged tide comes in from the side you're heading to, a liquid swell along the front magnifies with an RGB split, the photos blend wet-in-wet, and a pastel glow gathers along the border and fades as the new photo settles. Drag to scrub the bleed. Drawn in WebGL, idle when still.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › Carousel |
| Live preview | https://uibrik.com/components/ink-bleed-carousel |
| Writes | 1 files into `components/uibrik/ink-bleed-carousel/`, plus `components/uibrik/_gl-carousel/gl-carousel.tsx` |
| Packages | `@tabler/icons-react`, `motion`, `react-use-measure` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 27, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/ink-bleed-carousel
```

No license yet? Tell the user Ink Bleed Carousel is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=ink-bleed-carousel#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { InkBleedCarousel } from "@/components/uibrik/ink-bleed-carousel/ink-bleed-carousel";

const slides = [
  { src: "/registry/ink-bleed-carousel/painted-hills.webp", alt: "Painting of soft green hills above a winding river" },
  { src: "/registry/ink-bleed-carousel/black-vase.webp", alt: "White and yellow roses in a dark metal jug" },
  // …3 more
];

<InkBleedCarousel
  ratio={0.75}
  maxWidth={720}
  rounding={24}
  roughness={35}
  pooling={25}
  rainbow={70}
  tipColors={["#ff7a59", "#ff4d8d", "#9b6bff", "#ffb23f"]}
  wave={35}
  magnify={60}
  shift={50}
  border={70}
  duration={1.8}
  autoplay
  interval={5}
  controls
  slides={slides}
  defaultIndex={0}
  label="Gallery"
  // index={0}
  // onIndexChange={(index) => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/ink-bleed-carousel.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `ratio` | `number` | `0.75` | Height against width. |
| `maxWidth` | `number` | `720` | Widest the carousel grows. It also stays short enough to fit the window. |
| `rounding` | `number` | `24` | Corner radius. |
| `roughness` | `number` | `35` | How ragged the ink front is. 0 is a clean circle. |
| `pooling` | `number` | `25` | How much pigment pools along the front and wets the paper ahead of it. |
| `rainbow` | `number` | `70` | Strength of the pastel wash behind the front. 0 turns it off. |
| `tipColors` | `string[]` | `["#ff7a59","#ff4d8d","#9b6bff","#ffb23f"]` | Colours of the wash along the front, lightened to pastel. |
| `wave` | `number` | `35` | How much the front waves as it travels. |
| `magnify` | `number` | `60` | How strongly the swell along the front magnifies what's under it. |
| `shift` | `number` | `50` | How far red and blue split apart on the slopes of the swell. |
| `border` | `number` | `70` | Strength of the colour glow and magnifying bevel along the border while the photo changes. |
| `duration` | `number` | `1.8` | Length of one bleed. A drag scrubs it instead. |
| `autoplay` | `boolean` | `true` | Move on by itself. Holds on hover, focus and drag. |
| `interval` | `number` | `5` | Time between slides when autoplaying. |
| `controls` | `boolean` | `true` | Previous and next buttons under the carousel. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `slides` | `{ src: string; alt: string }[]` | `5 sample photos` | The slides, in order, up to 32. Photos on another origin need CORS headers to reach the GPU. |
| `index / onIndexChange` | `number / (index) => void` |  | Controlled current slide, from 0. |
| `defaultIndex` | `number` | `0` | Slide on mount when uncontrolled. |
| `label` | `string` | `"Gallery"` | Names the carousel for screen readers. |
| `className` | `string` |  | Classes for the wrapper. It fills its container's width. |

## Where it fits

- **Art and portfolio galleries**: A painterly bleed suits illustration, watercolour and photography portfolios. Pairs with [Lens Carousel](https://uibrik.com/components/lens-carousel.md) (Pro).
- **Editorial heroes**: One large photo that changes slowly and calmly, with no sliding track.
- **Product stories**: Dragging scrubs the transition, so visitors can hold it halfway and compare two photos.

## Same shelf: Carousel

- [Lens Carousel](https://uibrik.com/components/lens-carousel.md) (Pro): A looping carousel whose edges behave like thick glass. Slides are pulled out towards the rim, swell taller, smear sideways and split into colour, then fold back mirrored at the very edge. Drawn in WebGL, idle when still.
- [Möbius Carousel](https://uibrik.com/components/mobius-carousel.md) (Pro): A 3D carousel whose ring twists like a Möbius strip: cards stand upright at the front, lean with the ribbon round the sides and lie flat across the back, showing their captions from behind. Drag to spin with momentum.
- [Particle Carousel](https://uibrik.com/components/particle-carousel.md) (Pro): Three photos across: the middle one whole and sharp, the ones either side clouds of glowing particles that still hold their picture. On a change the middle photo comes apart and streams into the side it leaves towards, while the other cloud is drawn in and settles into a sharp photo. Drag to scrub. Drawn in WebGL.
- [Spiral Gallery](https://uibrik.com/components/spiral-gallery.md) (Pro): Cards flow along a single spiral seen from above. They grow out of a point at the middle and wind outwards, sharpening as they come, until they dissolve, whole, just before the rim. Click to reverse.
- [Stack Flow](https://uibrik.com/components/stack-flow.md) (Pro): Two stacks of cards sit on a diagonal with an open gap between them. Every beat a card leaves the first stack, crosses the gap alone and lands on the second, in an endless loop.
- [Curved Gallery](https://uibrik.com/components/curved-gallery.md) (Pro): Cards line the inside of a cylinder. The middle ones sit far back, the ones either side come round towards you, and the wall turns slowly in a loop. Click a card to bring it to the middle.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/ink-bleed-carousel/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
