Dot Pattern, Gradient Fade
Dot Pattern, Gradient Fade is a React and Tailwind CSS effect component from Magic UI, licensed MIT. Copy it and paste it into your project.
Magic UI
MIT
effects
What it is
Dot Pattern, Gradient Fade is a React and Tailwind CSS effect component from Magic UI, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
No packages beyond the project baseline
Licence
This component comes from Magic UI and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Dot Pattern, Gradient Fade
"use client"
import { cn } from "@/lib/utils"
import { DotPattern } from "@/registry/magicui/dot-pattern"
export default function DotPatternLinearGradient() {
return (
<div className="bg-background relative flex size-full items-center justify-center overflow-hidden rounded-lg border p-20">
<DotPattern
width={20}
height={20}
cx={1}
cy={1}
cr={1}
className={cn(
"[mask-image:linear-gradient(to_bottom_right,white,transparent,transparent)]"
)}
/>
</div>
)
}