Installation
Usage
Both Sides
Props
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes to apply to the blur container |
height | string | "30%" | Height of the blur effect container |
position | "top" | "bottom" | "both" | "bottom" | Position where the blur effect should appear |
blurLevels | number[] | [0.5, 1, 2, 4, 8, 16, 32, 64] | Array of blur values in pixels for progressive effect |
children | React.ReactNode | - | Optional content to render within the blur container |
The component uses CSS
backdrop-filter to create the blur effect, which provides smooth progressive blurring at the edges.