Story Rail About
A narrow sticky rail of chapter markers sits beside a longer story column, which ends in an offset, captioned image. Suited to a fuller company history than a single-screen section.
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/story-rail-about.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/about/about41.tsx instead.
Usage
The file also exports about41Demo, 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 { About41, about41Demo } from "@/components/blocks/about/about41"; export default function Page() { return <About41 {...about41Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label above the rail items. |
| railItems | RailItem[] | [] | Numbered chapter markers in the sticky rail column. |
| heading | string | none | Story column heading. |
| paragraphs | string[] | none | Body paragraphs of the story. |
| image | MediaSlotImage | undefined | Captioned image below the story text; falls back to a placeholder via MediaSlot. |
| caption | string | undefined | Caption shown under the image. |
| className | string | none | Extra classes for the outer section element. |
Types
type RailItem = { index: string; label: string };
Behavior notes
- The rail column becomes `lg:sticky lg:top-24` only from the lg breakpoint up; on narrow screens it sits above the story as a normal block, so no JS scroll-listener is involved anywhere.
- Unlike About15's single centered letter column, this block is intentionally two-column and asymmetric, with a 220px rail fixed beside a fluid story column rather than one narrow max-width block.
- The captioned image is offset with `sm:ml-12` so it reads as inset into the story text rather than full-width like About13's lead image, and its figcaption is optional independent of whether an image is supplied.
More About Blocks
View all →team-mission
Team & Mission
Two-column about section with mission statement, company stats, and team member grid.
values-with-team-photo
Values with Team Photo
Full-width photo with a three-column values grid below.
timeline-milestones
Timeline & Milestones
Company stats on the left and a vertical timeline of milestones on the right.
founder-quote-team
Founder Quote & Team
Founder blockquote with avatar, followed by a horizontal team member row.
image-text-split
Image & Text Split
Tall image on the left, company story, inline stats, and CTAs on the right.
numbered-principles
Numbered Principles
Heading on the left and numbered company principles on the right.