Photo Callout Markers
A wide photograph carries numbered pin markers placed by percentage coordinates, paired with a ruled list beside it. Selecting a marker on the photo or a row in the list highlights both together: the row's number becomes a filled seal, its rule darkens, and its text moves from muted to full contrast.
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/photo-callout-markers.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature22.tsx instead.
Usage
The file also exports feature22Demo, 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 { Feature22, feature22Demo } from "@/components/blocks/feature/feature22"; export default function Page() { return <Feature22 {...feature22Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label above the heading. |
| heading | ReactNode | none | Section heading. |
| description | string | undefined | Supporting paragraph under the heading. |
| photo | { src: string; alt: string } | none | Wide photo the markers are pinned to. |
| markers | Feature22Marker[] | none | Numbered callouts; the first entry is selected by default. |
| className | string | none | Extra classes for the outer section element. |
Types
interface Feature22Marker { id: string; number: number; x: number; // percentage from the left edge of the photo, 0-100 y: number; // percentage from the top edge of the photo, 0-100 title: string; description: string; }
Behavior notes
- Real interactivity: clicking a numbered pin on the photo or a row in the list updates one shared piece of local state; the two stay in sync no matter which side you click.
- The selected row's marker number renders as a filled seal (solid background instead of an outline), its top rule switches to a darker border color, and its title switches from text-muted-foreground to full text-foreground.
- Marker position is plain percentage-based absolute positioning, it does not account for image cropping at odd aspect ratios beyond the fixed 16:10 the photo is displayed at.
- The first marker in the array is selected by default; there is no prop to control the initial selection from outside the component.
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.