Components
StickyHeader
A header that becomes sticky with a blurred background after scrolling past a threshold.
Overview
<StickyHeader> creates a header that sticks to the top of the viewport once the user scrolls past a configurable threshold. It applies a backdrop blur and background color for readability.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
threshold | number | 0 | Scroll distance in pixels before the header becomes sticky |
background | string | "rgba(255, 255, 255, 0.8)" | Background color when sticky |
blur | number | 8 | Backdrop blur amount in pixels |
children | ReactNode | -- | Header content |
className | string | -- | CSS class for the header element |
style | CSSProperties | -- | Inline styles |