204 Pro components and page blocks

Get Pro

Updated

Star Warp

Pro

Preview

Customize

Colors
Background
Density1.00
Speed1.0
Warp speed1.00
Streak1.00
Dispersion1.00
Twinkle1.00
Glow1.00
Rays1.00
Nebula0.40
Steer1.00
Spotlight1.00
Grain0.030
Seed0

Installation

Pro

Star Warp is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/star-warp

Usage

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>

Where to use Star Warp

  • 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.

Props

StarWarp
colors
Type string[]
["#f4f6ff","#bcd2ff","#c9b8ff","#ffd6c2","#9fe3ff"]
Star colours. The first is the most common; the rest are sprinkled through.
background
Type string
"#03040a"
Colour of space behind the stars.
density
Type number
1
How many stars, relative to the default.
speed
Type number
1
Cruising speed when not warping.
warpSpeed
Type number
1
How fast the warp goes.
streak
Type number
1
Length of the warp streaks.
dispersion
Type number
1
How strongly streaks split into colour and the frame shifts toward its edges.
twinkle
Type number
1
How much stars twinkle.
glow
Type number
1
Bloom around bright stars and streaks.
rays
Type number
1
Light rays pulled from the vanishing point while warping.
nebula
Type number
0.4
Faint coloured dust behind the stars.
steer
Type number
1
How far the view drifts and leans toward the pointer. 0 turns it off.
spotlight
Type number
1
How much stars near the pointer brighten and sparkle. 0 turns it off.
holdToWarp
Type boolean
true
Press and hold anywhere to warp.
warp
Type boolean
false
Warp now, whatever the pointer does.
grain
Type number
0.03
Film grain strength.
animate
Type boolean
true
Move on its own. Off holds one frame; hover still works.
seed
Type number
0
A different scatter of stars.
origin
Type [number, number]
[0.5, 0.5]
Where the stars come from, as a share of the width and height.
onWarpChange
Type (warping: boolean) => void
–
Called when a hold starts or ends a warp.
children
Type ReactNode
–
Content shown on top of the stars.
className
Type string
–
Classes for the box; it fills whatever size you give it.