Put Starfield behind your content in a dark box with a size.
launch-hero.tsx
Starfield
<canvas>| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "oklch(1 0 0)" | The star color (any CSS color). Default white. |
| count | number | 400 | Stars on a 1280 × 720 stage; scaled by the stage area. Default 400. |
| speed | number | 1 | How fast the stars come near: 1 is a cruise, 2.5 a warp. Default 1. |
| streaks | boolean | true | Draw 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. |











