Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Layered Story About Block for React

A company's story in four layers (Mission, Values, Approach and Proof) as bands ruled from rail to rail, each set a step further in than the last like a stack of sheets, with its label at the start and its content at the end.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A layered story for React with Base UI, written for Layerbright, a fictional data catalogue. A start-aligned header says what the company builds and how to read the block, top down. Under it, four layers, Mission, Values, Approach and Proof, are a description list: each is a band with its label at the start and its content at the end (the label above the content on a phone). The first layer uses the page's rails; every later one is set a step further in than the one before, drawing its own side lines and + marks where they meet the band's rule, so the bands read as a stack of sheets that gets narrower as the story goes from why we exist to what we can prove. The content differs by layer: a sentence, three values, a paragraph, three figures. The block ends on the last layer's content. The page's rails and top rule come from the Guides spine. It's built from Guides, with a CSS entrance and your theme's tokens for every colour. For about pages and handbooks that tell a story in order and want the order to show. The figures are example data.

FAQ

How do I change a layer, or add a fifth?

Each layer is a Layer in the component with a label, a depth (0 for the first, then 1, 2 and 3) and any content. To add one, add a Layer with the next depth and a matching entry in INSET and REACH at the top of the file, which hold the classes for how far the layer is set in and how far its rule reaches back to the rails. Past four layers, shrink the step so the last band stays wide enough.

How do the sheets work?

Every layer is a box with a margin that grows by one step: that box draws the side lines and the + marks at its top corners. The rule across the top of the band reaches the rails by the same amount backwards, so each band's top line runs the full width of the page and ends in a T against the box's sides. Nothing is a background, so it follows any theme.

How is it read by a screen reader?

The layers are one description list: each label is a term and its content the description, in the order of the story. The sides, the rules and the + marks are decorative and hidden from assistive technology, so the stepping is a visual aid only.

Are the figures real?

No, they're example data for a fictional company. Replace the PROOF entries with your own; each is a value and a label, and the value is wrapped so a number with a unit keeps its order in a right-to-left layout.

What moves, and what happens with reduced motion?

The header and the layers fade up once on load. With reduced motion they simply appear. The block has no state and no script, so it can render on the server.

How does it fit on a phone?

Each label moves above its content, and the steps shrink to half a rem so the last layer still has room at 320 pixels. The values and the figures stack one per row. Nothing scrolls sideways.

  • Pro

    Mission About

    Statements

    A mission statement for a home-care scheduling company: the mission in large type beside one supporting sentence, three pillars that each carry the figure they are checked by, and a founding line in relative time.

  • Pro

    A mission held up by four pillars for a civic-software company: cells that share their hairlines, each with its numeral, a sentence, three initiatives with shipped and in-progress marks, and a progress bar counted from the list.

  • Pro

    Principles Rail About

    Principles and process

    A split about section for a release-management tool: a sticky title at the start, and six principles as stations on a hairline rail, each opening to what it means and how it shows up.

  • Pro

    Double Helix Company DNA

    Culture and values

    A company-DNA section for a survey tool: a hand-drawn double helix with five rungs in a framed figure, and a list of five traits that lights a rung and shows what the trait means and how it is hired for.

  • Pro

    A flat stack ladder for an app platform: five bars from interface to infrastructure, each a step wider, linked by hover and focus to a list of what sits in every layer.

  • Pro

    An exploded isometric stack of three greyscale planes (data, logic, view) in CSS 3D, with a ruled list of the layers beside it: hovering, focusing or tapping a layer lifts its plane and outlines it.