shadcn.io is not affiliated with official shadcn/ui
Depth Layered Stack Features Block for React
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.
Installation
Overview
A depth layered stack features section for React with Base UI. A split with a hairline divider: on the start side a compact heading and the three layers of a design-layers tool (view, logic and data) as a ruled list, each a button with a sentence; on the end side, in a framed stage, three greyscale planes hang apart in CSS 3D at an isometric angle, a screen above a flow of rules above a table of cells. Hovering, focusing or tapping a layer lifts its plane and outlines it while the others step back, and leaving the list lets the stack rest. It's built from Guides with CSS transforms and transitions and your theme's tokens for every colour. For architecture, design-system and platform products that explain themselves in layers.
FAQ
How are the planes drawn?
The stage has a perspective; inside it one square is rotated with rotateX(58deg) rotateZ(-40deg) and transform-style: preserve-3d, and each plane is placed along its local z axis by a --rise custom property (0, 5 and 10 rem). Picking a layer adds a --lift of 2.5 rem to that plane. There's no script frame loop: a transition on transform does the movement.
How do I change the layers?
Edit the three Layer objects at the top (title, text and rise) and the three plane drawings (DataPlane, LogicPlane and ViewPlane), which are plain boxes and lines. The list reads top to bottom the way the stack looks, so LIST is the layers from the highest down.
What works from a keyboard or on a touch screen?
Each layer is a real button in a heading, with aria-pressed while it is the picked one. Pointer hover, keyboard focus and a tap all pick it. The stack rests again when the pointer or focus leaves the list. The planes are decoration and hidden from assistive technology: the list says everything they show.
What happens with reduced motion?
The planes jump to their lifted or resting position without a transition, and the one-time fade-up of the two halves on load is off.
Related
- Pro
Layered Stack Diagram Features
Diagrams and mapsA 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
Layered Deck Shuffle Features
Carousels and mediaA stack of six flashcards with one large front card and three peek cards above it at shrinking scale; Next card sends the front card to the back and clicking a peek brings it forward, beside three features.
- Pro
3D Ring Carousel Features
Carousels and mediaSix capability cards on a true 3D ring in a framed stage, turned a card at a time by the previous and next buttons or the arrow keys, with the far cards dimming behind the front one.
- Pro
Hover Accordion Mockup Split Features
Tabs and accordionsA features section for an operations console: an accordion of four features whose open row swaps the console screen drawn in a framed figure beside it, by pointer, focus or tap.
- Pro
Fanned Card Deck Features
Carousels and mediaFive playbook cards stacked and pivoting from their bottom edge that spread on an arc on hover, on focus inside the deck or when a Fan out toggle is pressed, each with a small drawing of its play.
- Pro
Index Card File Rolodex Features
Carousels and mediaA wallet-style stack of five studio contact cards built on a single-open Accordion: the cards overlap so only each title strip shows, and opening one slides it forward and reveals its details.