An overlay component that creates a soft, progressive blur effect on content below it, ideal for frosted glass designs.
$ npx shadcn@latest add https://akshitr.com/r/progressive-blur.json
import ProgressiveBlur from "@/components/progressive-blur";
export default function ProgressiveBlurDemo() {
return <ProgressiveBlur />;
}| Prop | Type | Default | Description |
|---|---|---|---|
| className? | string | — | Additional classes applied to the root element. |
| position? | "top" | "bottom" | "bottom" | Position and direction of the blur ramp. |
| height? | string | number | — | Custom height (e.g. 100, "120px"). Defaults to responsive height (h-14 sm:h-18 md:h-24). |
| tint? | boolean | true | Blends a smooth optical color ramp using --background. |
--backgroundThe component layers an optical multi-stop color-mix gradient over the blur using var(--background). This creates a smooth depth fade that melts scrollable content cleanly into the page background.
If you prefer pure optical frosted glass without any background color fade, you can disable it:
<ProgressiveBlur tint={false} />