BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/magicui/backlight

Backlight

magicui/backlight
FreeComponent

A backlight glow effect for videos, images, and SVGs.

Live preview

live · rendered by the registry
Rendered by magicui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://magicui.design/r/backlight.json

Source

registry/magicui/backlight.tsxmagicui.design/r/backlight.json
1import { useId, type ReactElement } from "react"
2
3type BacklightProps = {
4 children?: ReactElement
5 className?: string
6 blur?: number
7}
8
9export function Backlight({ blur = 20, children, className }: BacklightProps) {
10 const id = useId()
11
12 return (
13 <div className={className}>
14 <svg width="0" height="0" aria-hidden="true">
15 <filter id={id} y="-50%" x="-50%" width="200%" height="200%">
16 <feGaussianBlur
17 in="SourceGraphic"
18 stdDeviation={blur}
19 result="blurred"
20 ></feGaussianBlur>
21 <feColorMatrix
22 type="saturate"
23 in="blurred"
24 values="4"
25 ></feColorMatrix>
26 <feComposite in="SourceGraphic" operator="over"></feComposite>
27 </filter>
28 </svg>
29
30 <div style={{ filter: `url(#${id})` }}>{children}</div>
31 </div>
32 )
33}

Files it writes

  • registry/magicui/backlight.tsx

Facts

Registry
magicui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
today

Go to the source

Docs on magicui magicui.design magicuidesign/magicui on GitHub Raw registry item This item as JSON

More from magicui

All 247 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AndroidandroidmagicuiComponentsFreeno deps
Animated Beamanimated-beammagicuiComponentsFree1 dep
Animated Circular Progress Baranimated-circular-progress-barmagicuiComponentsFreeno deps
Animated Gradient Textanimated-gradient-textmagicuiComponentsFreeno deps
Animated Grid Patternanimated-grid-patternmagicuiComponentsFree1 dep
Animated Listanimated-listmagicuiComponentsFree1 dep
Animated Shiny Textanimated-shiny-textmagicuiComponentsFreeno deps
Theme Toggleranimated-theme-togglermagicuiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex