Components
A scrollable container that fades content into blurred gradient edges on the top, bottom, left, and right, with optional scroll-snap item helpers.
Loading preview...
import { ScrollBlur } from "@/components/ui/scroll-blur"
const steps = [
{ title: "Registry payload generated", step: "Step 01" },
{ title: "Source files validated", step: "Step 02" },
{ title: "Dependencies resolved", step: "Step 03" },
{ title: "Install command copied", step: "Step 04" },
{ title: "Preview screenshots updated", step: "Step 05" },
{ title: "Metrics synced", step: "Step 06" },
{ title: "Docs examples checked", step: "Step 07" },
{ title: "Deployment queued", step: "Step 08" },
]
export default function ScrollBlurDemo() {
return (
<div className="flex min-h-[440px] w-full items-center justify-center bg-background p-6">
<ScrollBlur edgeSize={48} className="h-72 w-full max-w-sm rounded-lg border">
<div className="flex flex-col divide-y">
{steps.map((item) => (
<div key={item.step} className="flex flex-col gap-1 p-4">
<span className="text-sm font-medium text-foreground">
{item.title}
</span>
<span className="text-xs text-muted-foreground">{item.step}</span>
</div>
))}
</div>
</ScrollBlur>
</div>
)
}