Skip to content

    Browse components

    Edge Fog

    A progressive edge blur built from stacked, masked backdrop-filter layers. Drop it over any scrolling area.

    Open
    Customize
    top
    bottom
    left
    right

    Installation

    npx shadcn@latest add @glint-ui/edge-fog

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/edge-fog.json

    Usage

    import { EdgeFog } from "@/components/ui/edge-fog";
    
    <div className="relative h-96 overflow-hidden">
      <div className="h-full overflow-y-auto">{/* content */}</div>
      <EdgeFog position="bottom" strength={12} height={140} />
    </div>

    Props

    PropTypeDefaultDescription
    position"top" | "bottom" | "left" | "right""bottom"Edge the blur is anchored to.
    strengthnumber12Blur in px at the edge.
    heightnumber140Band thickness in px.
    layersnumber6Stacked layers; more is smoother.
    exponentialbooleantrueExponential blur ramp instead of linear.
    fadebooleantrueAlso fade toward the background color.
    classNamestring—Extra classes for the root element.