Skip to content

Starfield

Pro

Stars fly out from a point, grow near the viewer, and streak with the speed. On a canvas, for a hero or a screensaver.

  • React 19
  • Tailwind CSS 4

Added Nov 11, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Starfield needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
26
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Put Starfield behind your content in a dark box with a size.

launch-hero.tsx

Starfield

<canvas>
PropTypeDefaultDescription
colorstring"oklch(1 0 0)"The star color (any CSS color). Default white.
countnumber400Stars on a 1280 × 720 stage; scaled by the stage area. Default 400.
speednumber1How fast the stars come near: 1 is a cruise, 2.5 a warp. Default 1.
streaksbooleantrueDraw each star as a streak that grows with speed. Default true.
origin—Where the stars come from, as fractions of the stage. Default the center.
...props<canvas> attributes—Every other attribute goes to the <canvas>, with a ref.
  • Use speed from 1 (a cruise) to 2.5 (a warp).
  • Use origin to move the point the stars come from.
  • Use streaks={false} for round stars on a calm display.
  • For soft lines that drift, use Ribbons.
  • For logos that scroll in a row, use a Marquee.
  1. AddedStarfield.
Open the release