Progressive Blur
Server ComponentA stacked backdrop-blur that fades content out toward an edge.
Import
tsx
import { ProgressiveBlur } from "@cronus-ui/ui";
bash
npx cronus-ui add progressive-blur
Examples
.cronus
The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.
default.cronus
app "audit-fixtures" {
port 5176
}
style {
preset aurora
theme dark
}
component ProgressiveBlurDefault layout:inline style:progressive-blur {
label "Blur"
}
page "/audit/progressive-blur/default" type:custom {
use ProgressiveBlurDefault
}
API Reference
Generated from the component's exported types.
ProgressiveBlurProps
Extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof progressiveBlurVariants>
| Prop | Type | Default | Description |
|---|---|---|---|
ref | Ref<HTMLDivElement> | — | Ref forwarded to the underlying DOM node. |
height | string | "6rem" | Height of the blur band. |
side | "top" | "bottom" | "bottom" | One of "top" | "bottom". |
asChild | boolean | — | Render as the child element via Slot. |
children | ReactNode | — | Contents of the component. |
className | string | — | Additional class names merged onto the root. |
id | string | — | DOM id of the root element. |