uibrik

Aurora

Preview

Customize

Colors
Background
Intensity1.00
Layers3
Height0.45
Spread0.20
Waviness1.00
Stretch1.00
Speed1.0
Grain0.020
Seed0
Lean1.00

Usage

import { Aurora } from "@/components/uibrik/aurora/aurora";

<Aurora />

Installation

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

Props

Aurora
colors
Type string[]
["#2dd4a7","#36c3b4","#6d74f0","#41cf9b"]
Hex colours, 2 to 6, used exactly as given.
background
Type string
""
Base colour behind the light; empty follows the page.
intensity
Type number
1
Brightness of the light.
layers
Type number
3
Number of curtains.
height
Type number
0.45
Where the curtains sit, 0 at the bottom to 1 at the top.
spread
Type number
0.2
How far the light reaches upward.
waviness
Type number
1
How much the curtains undulate; 0 is flat.
stretch
Type number
1
Horizontal size of the waves; larger is broader and calmer.
speed
Type number
1
Animation speed; 1 is the designed pace.
grain
Type number
0.02
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
1
How strongly the curtains lean toward the pointer.
children
Type ReactNode
–
Content shown on top of the background.
className
Type string
–
Classes for the box; it fills whatever size you give it.