Staaarter

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.

By Staaarter Team
Feature
Docs
Live preview

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.json

Prefer 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

PropTypeDefaultDescription
photo{ src: string; alt: string }noneThe pinned tall photograph.
captionstringnoneCaption below the photo, rendered without a rule.
notesFeatureNote[]noneNotes in the scrolling right-hand column.
classNamestringnoneExtra 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.