UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
import { FlickeringGrid } from "@/registry/magicui/flickering-grid"
export default function FlickeringGridDemo() {
return (
<div className="bg-background relative h-[500px] w-full overflow-hidden rounded-lg border">
<FlickeringGrid
className="absolute inset-0 z-0 size-full"
squareSize={4}
gridGap={6}
color="#6B7280"
maxOpacity={0.5}
flickerChance={0.1}
height={800}
width={800}
/>
</div>
)
}