BadtzUIBeta
Docs
Hyperspace Background

Hyperspace Background

A dynamic and customizable background component that simulates a star-filled hyperspace effect.

Ship at the
speed of light

Installation

pnpm dlx shadcn@latest add https://badtz-ui.com/r/hyperspace-background.json

Usage

import { HyperspaceBackground } from "@/components/ui/hyperspace-background";
<div className="w-full relative h-[350px]">
  <HyperspaceBackground />
</div>

Props

HyperspaceBackground props.

PropTypeDescriptionDefault
starTrailOpacitynumberControls the opacity of the star trails, affecting how visible the trails are.0.5
starSpeednumberDetermines the speed at which the stars move across the canvas.1.01
starColorstringSets the color of the stars, specified in hexadecimal format.#FFFFFF
starSizenumberDefines the initial size of the stars.0.5
classNamestringAdditional CSS classes to apply to the main container.-

Credits

  • This component is heavily inspired by @ybensira
  • Stripe Animated GradientBlur Reveal