Staaarter

Feature Walkthrough with Sticky Navigation

A documentation-page style walkthrough: a sticky left-hand navigation list of plain anchor links stays in view while the visitor scrolls through a stacked list of full-width feature sections on the right, each with an image, a title, and a description.

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/feature-walkthrough-sticky-navigation.json

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

Usage

The file also exports feature132Demo, 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 { Feature132, feature132Demo } from "@/components/blocks/feature/feature132";

export default function Page() {
  return <Feature132 {...feature132Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading; omitted entirely when unset.
headingReactNodenoneSection heading.
sectionsWalkthroughSection[]noneSections rendered in order, each linkable from the sidebar nav.
classNamestringundefinedExtra classes for the outer section element.

Types

type WalkthroughSection = {
  id: string;
  navLabel: string;
  title: string;
  description: string;
  image: { src: string; alt: string };
};

Behavior notes

  • Plain server component with no interactivity or scroll-spy JavaScript; the sidebar links are real anchor tags (`<a href="#id">`) and the sticky positioning is pure CSS (`lg:sticky lg:top-24`).
  • Each section carries `scroll-mt-24` so a jump from the nav lands below the sticky viewport edge instead of flush against it.
  • The nav scrolls horizontally as a single row on mobile (where there is no room for a sticky sidebar) and switches to a vertical bordered list on large screens.