shadcn.io is not affiliated with official shadcn/ui
Chaptered Origin Story About Block for React
A company's origin story as four long chapters of prose beside a sticky chapter index that follows the reader, turning into a row of chips on phones.
Installation
Overview
An origin story for React with Base UI, written for Firstlight Press, a fictional publishing platform for independent authors. The story is four chapters of real prose, "Chapter 1: The spare room" to "Chapter 4: What we kept", set in the end column behind a split divider and separated by hairline bands. In the start column the title and a chapter index stay in view while you read: the index is the Toc component, so a bar follows the chapter that's on screen and each entry is an anchor that jumps to its heading. On a phone the index becomes a row of chips under the title that scrolls sideways, and the chapters stack. Times in the story are relative ("that first winter", "two summers later"), never a calendar year. The block ends on a text link, not a rule, and is built from Toc, Prose and Guides with your theme's tokens for every colour. For about pages that tell a founding story at length. The company and its story are example content.
FAQ
How do I write my own chapters?
The chapters are CHAPTERS at the top of the file: each has an anchor (the id the index links to, so keep it unique on the page), a title and an array of paragraphs. The chapter numbers come from the order. The index is built from the same list, so adding or removing a chapter updates both.
How does the chapter index work?
It is the Toc component: its items are the chapters' headings, a bar slides to the one in view as you scroll, and each entry is a normal anchor, so it works with a keyboard and without script. On wide screens the index is sticky and stays beside the chapters. On phones it is replaced by a row of plain anchor chips, which jump to the same headings.
How is it read by a screen reader?
The title is the only h2 and each chapter is a section labelled by its h3, which carries its number as text ("Chapter 1: The spare room"). The index is a navigation landmark with a list of links; the phone chips are a second navigation landmark with its own name, shown only on small screens. The bands and the divider are decorative.
What happens on a phone?
The title and a one-line summary come first, then the chips, then the chapters one under another with a rule between them. The chips scroll sideways inside their own row, and the page does not. Nothing overflows at 320 pixels, and in a right-to-left layout the divider, the bar and the link's arrow all follow the direction.
Related
- Pro
Horizontal Track Timeline About
TimelinesA company timeline drawn as one horizontal track: six milestones in relative time, each a cell of a ruled band with a dot on the rule, turning into a vertical rail on phones.
- Pro
Central Spine Timeline About
TimelinesA company timeline on a central spine: eight events that alternate sides on wide screens, a ring, square or dot node by kind, and a collapsible detail with what shipped.
- Pro
Alternating Chapters About
Company storyA company story in three alternating split rows, each with a time, a title, a paragraph, a one-line metric, a pull quote and a greyscale drawing of the product at that chapter, the sides swapping row to row.
- Pro
Centered Story About
Company storyA founding story told as one centred long read: a heading and byline, a first paragraph with a drop cap, a pull quote on a band ruled rail to rail, then the rest in a readable column ending on a closing line and a link.
- Pro
Founder Letter with Margin Notes About
Company storyA founder letter for a document-signing company, set on a sheet with margin notes that line up beside each paragraph and fold under it on a narrow screen.
- Pro
Split Layout Founder Letter Hero
TestimonialsA start-aligned hero with a headline, a Shine Button and three ruled promises, over a full-width band holding the founder's letter as three cells of one quotation and a signature row.