81 Pro components and page blocks

Get Pro

Diagonal Beams

New

Preview

Customize

Color
Background
Count7
Size1.00
Angle-50°
Blur1.00
Rim0.70
Tilt1.00
Intensity1.00
Speed1.0
Grain0.030
Lean1.00

Installation

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

Usage

import { DiagonalBeams } from "@/components/uibrik/diagonal-beams/diagonal-beams";​<DiagonalBeams  color="#e5373f"  background="#060608"  count={7}  size={1}  angle={-50}  blur={1}  rim={0.7}  tilt={1}  intensity={1}  speed={1}  grain={0.03}  animate  interactive  lean={1}>  …</DiagonalBeams>

Props

DiagonalBeams
color
Type string
"#e5373f"
Colour of the light; drawn in shades of it.
colors
Type string[]
["#0a1520","#1b3550","#d4313b","#ee7887","#f8c3cb"]
Hex colours, 2 to 6, from the dimmest light to the brightest. Overrides color.
background
Type string
"#060608"
Colour behind the strips.
count
Type number
7
How many strips fit the height of the box.
size
Type number
1
Size of the light; 1 is the designed size.
angle
Type number
-50
Direction the strips run; negative slants down to the right.
blur
Type number
1
How far the light's edge dissolves into grain; 0 is a smooth falloff.
rim
Type number
0.7
The thin highlight along each fold's crisp edge, reaching out into the dark.
tilt
Type number
1
How much the strips twist along their length, letting less light through where they turn.
intensity
Type number
1
Exposure: how bright the light is.
speed
Type number
1
Animation speed; 1 is the designed pace.
grain
Type number
0.03
Film grain strength, over the whole frame.
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 far the light leans 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.