# Star Warp (Pro)

> A deep, twinkling starfield; hold to jump to warp as stars stretch into colour-split streaks, and hover to steer through them.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Backgrounds › Backgrounds |
| Live preview | https://uibrik.com/components/star-warp |
| Writes | 1 file into `components/uibrik/star-warp/` |
| Packages | `three` (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 25, 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/star-warp
```

No license yet? Tell the user Star Warp is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=star-warp#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 { StarWarp } from "@/components/uibrik/star-warp/star-warp";

const colors = ["#f4f6ff", "#bcd2ff", "#c9b8ff", "#ffd6c2", "#9fe3ff"];

<StarWarp
  colors={colors}
  background="#03040a"
  density={1}
  speed={1}
  warpSpeed={1}
  streak={1}
  dispersion={1}
  twinkle={1}
  glow={1}
  rays={1}
  nebula={0.4}
  steer={1}
  spotlight={1}
  holdToWarp
  warp={false}
  grain={0.03}
  animate
  seed={0}
  origin={[0.5, 0.5]}
  onWarpChange={(warping) => {}}
>
  …
</StarWarp>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/star-warp.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `colors` | `string[]` | `["#f4f6ff","#bcd2ff","#c9b8ff","#ffd6c2","#9fe3ff"]` | Star colours. The first is the most common; the rest are sprinkled through. |
| `background` | `string` | `"#03040a"` | Colour of space behind the stars. |
| `density` | `number` | `1` | How many stars, relative to the default. |
| `speed` | `number` | `1` | Cruising speed when not warping. |
| `warpSpeed` | `number` | `1` | How fast the warp goes. |
| `streak` | `number` | `1` | Length of the warp streaks. |
| `dispersion` | `number` | `1` | How strongly streaks split into colour and the frame shifts toward its edges. |
| `twinkle` | `number` | `1` | How much stars twinkle. |
| `glow` | `number` | `1` | Bloom around bright stars and streaks. |
| `rays` | `number` | `1` | Light rays pulled from the vanishing point while warping. |
| `nebula` | `number` | `0.4` | Faint coloured dust behind the stars. |
| `steer` | `number` | `1` | How far the view drifts and leans toward the pointer. 0 turns it off. |
| `spotlight` | `number` | `1` | How much stars near the pointer brighten and sparkle. 0 turns it off. |
| `holdToWarp` | `boolean` | `true` | Press and hold anywhere to warp. |
| `warp` | `boolean` | `false` | Warp now, whatever the pointer does. |
| `grain` | `number` | `0.03` | Film grain strength. |
| `animate` | `boolean` | `true` | Move on its own. Off holds one frame; hover still works. |
| `seed` | `number` | `0` | A different scatter of stars. |

## Wire it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `origin` | `[number, number]` | `[0.5, 0.5]` | Where the stars come from, as a share of the width and height. |
| `onWarpChange` | `(warping: boolean) => void` |  | Called when a hold starts or ends a warp. |
| `children` | `ReactNode` |  | Content shown on top of the stars. |
| `className` | `string` |  | Classes for the box; it fills whatever size you give it. |

## Where it fits

- **Launch heroes**: Holding to warp turns a launch or countdown page into a moment people play with.
- **AI and deep-tech brands**: A calm, glowing sky that steers with the pointer suits research, space and frontier products.
- **Loading and transition screens**: Drive the warp prop while something loads, then let the stars settle when it is ready.

## Same shelf: Backgrounds

- [Topographic Lines](https://uibrik.com/components/topographic-lines.md): Contour lines of a slowly shifting landscape, like a survey map; the pointer raises a hill the lines ring around.
- [Aurora](https://uibrik.com/components/aurora.md): Slow curtains of light with fine rays that lean toward the cursor.
- [Caustics](https://uibrik.com/components/caustics.md): Sunlight on a pool floor, from light rays bent by moving water; click to drop a ripple.
- [Diagonal Beams](https://uibrik.com/components/diagonal-beams.md): One soft light falling across sharp, slanted pleats in the dark, its edge dissolving into fine grain.
- [Dither Gradient](https://uibrik.com/components/dither-gradient.md): A bending gradient drawn only in your colours through an ordered dither.
- [Dot Grid](https://uibrik.com/components/dot-grid.md): A quiet grid of dots lit by a drifting wave and by the cursor.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/star-warp/` 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
