Sticky Photo With Notes
A single tall photograph pinned with position sticky, captioned without a rule, while a column of eyebrow-led notes scrolls past it, each note after the first opening on its own hairline.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/sticky-photo-with-notes.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature19.tsx instead.
Usage
The file also exports feature19Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Feature19, feature19Demo } from "@/components/blocks/feature/feature19"; export default function Page() { return <Feature19 {...feature19Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| photo | { src: string; alt: string } | none | The pinned tall photograph. |
| caption | string | none | Caption below the photo, rendered without a rule. |
| notes | FeatureNote[] | none | Notes in the scrolling right-hand column. |
| className | string | none | Extra classes for the outer section element. |
Types
type FeatureNote = { eyebrow: string; title: string; description: string; };
Behavior notes
- The sticky pinning is pure CSS (`lg:sticky lg:top-24 lg:self-start`) with no client-side JavaScript; it only applies at the lg breakpoint and up, stacking normally on mobile.
- Only the first note omits the top hairline; every subsequent note opens with a border-t rule, matching the brief.
- Purely presentational otherwise: no client-side state.
More Feature Blocks
View all →Full-Bleed Workspace Band
Two-column header above a full-bleed image band with a live view switcher, closing on three numbered captions.
Center-Line Journey Timeline
Vertical hairline timeline alternating stages either side, dropping a phone frame on one step.
Figure-Led Evidence Rows
Tall image with a floating before-and-after card, leading into oversized-figure evidence rows.
Staircase Asset Trio
Three image tiles stepping down the page in a staircase, each floating a different live asset.
Sticky Reference List
Sticky heading column beside three labelled groups of checked capabilities, closing on a footnote.
Day Timeline Rows
Hairline rows walking through one working day, stamped with time and a live approval card inline.