Staaarter

Sticky Reference List

A feature section with a heading column that sticks in place while three labelled groups of checked capabilities scroll past it, closing on a footnote under a hairline. Good for a long, reference-style capability list under a short pitch.

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 dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/sticky-reference-list.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature5.tsx instead.

Usage

The file also exports feature5Demo, 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 { Feature5, feature5Demo } from "@/components/blocks/feature/feature5";

export default function Page() {
  return <Feature5 {...feature5Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringnoneSmall label above the heading.
headingReactNodenoneHeading in the sticky left column.
descriptionstringnoneSupporting copy under the heading.
groupsCapabilityGroup[]noneLabelled groups of checked capability items in the right column.
footnotestringnoneFine-print line under a hairline at the end of the list.
classNamestringnoneExtra classes for the outer section element.

Types

type CapabilityGroup = { label: string; items: string[] };

Behavior notes

  • The sticky behavior is pure CSS (lg:sticky lg:top-24 lg:self-start on the heading column) with no client JavaScript or scroll listeners involved; it only takes effect at the lg breakpoint, stacking normally on mobile.
  • Each capability item shows a static check icon, none of it is a real toggleable checklist.
  • The footnote sits under its own hairline below the last group regardless of how many groups are passed in.