uibrik

Prism Burst

Preview

Customize

Colors
Background
Hole0.25
Length1.00
Dispersion1.95
Chunks0.60
Ring width1.80
Intensity0.95
Iridescence0.80
Speed1.0
Grain0.070
Seed0
Lean0.60
Follow0.80

Usage

import { PrismBurst } from "@/components/uibrik/prism-burst/prism-burst";

<PrismBurst />

Installation

npx shadcn@latest add https://uibrik.com/r/prism-burst.json
Adds the files to components/uibrik/prism-burst. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/prism-burst.

Props

PrismBurst
colors
Type string[]
["#ffd9b0","#c9d6ff","#ffc6e4","#d8fff0","#fff1c7"]
Tints the rays take around the circle; the brightest parts stay white.
background
Type string
"#050506"
Colour behind the light.
hole
Type number
0.25
Radius of the dark centre.
length
Type number
1
How far the rays reach.
dispersion
Type number
1.95
Rainbow split along the ray edges.
chunks
Type number
0.6
How broken the ring of light is; higher makes more, smaller chunks.
ringWidth
Type number
1.8
Width of the ring the rays start from.
intensity
Type number
0.95
Brightness.
iridescence
Type number
0.8
How strongly the rays take the colour list; 0 is plain white light.
speed
Type number
1
Animation speed; 1 is the designed pace.
grain
Type number
0.07
Film grain strength.
seed
Type number
0
Shifts the composition, so two backgrounds with the same settings still differ.
animate
Type boolean
true
Move on its own. Off draws one still frame.
interactive
Type boolean
true
React to the pointer.
lean
Type number
0.6
How far the centre drifts toward the pointer.
follow
Type number
0.8
How lazily it follows the pointer, 0 (locked) to 1 (drifts after it).
children
Type ReactNode
–
Content shown on top of the background.
className
Type string
–
Classes for the box; it fills whatever size you give it.