Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Index Card File Rolodex Features Block for React

A 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.

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

An index card file features section for React with Base UI. A split with a hairline divider: on the start side a compact heading and three short points, sticky on wide screens; on the end side a wallet-style stack of five studio contact cards for a contacts tool. The cards overlap, so only each card's title strip shows (an avatar, the studio and who to ask for), and opening one slides it forward with a deeper shadow and reveals its email, phone, base and services while the cards beneath step down. It's built on Accordion, so it is a real single-open disclosure group, with Avatar, Badge and Guides, and your theme's tokens for every colour. For directories, team and contact lists and any set of records that earn a detail view.

FAQ

How do the cards overlap?

Each accordion item has a -mt-4 margin so it overlaps the previous card by one rem, and a shadow cast upward so the cards read as layers. The open card is lifted with z-10, a deeper shadow and a mb-4 margin, so the next card doesn't cover its foot. The open state is read with has-aria-expanded, which every target's trigger sets, so there is one set of classes for all of them.

How do I change the contacts?

Edit STUDIOS: each has a name, a contact and role, an email, a phone, a base and its services. The first studio is open on load; change the default value in the Accordion to open another, or to none.

Is it accessible?

Each strip is a button in a heading (the studio's name), with aria-expanded and the details in its panel. Only one card is open at a time, and Tab, Enter and Space work on every target.

What happens with reduced motion?

The margin and shadow transitions are off. The panel's own height animation comes from the accordion: on Ark and Radix it respects the setting, while Base UI and React Aria still animate the height.

Does it follow my theme?

Yes. The cards are your card colour with a hairline, a ring and a shadow; avatars show initials in the foreground colour, and the services are outline badges. Nothing uses the primary colour.

How does it fit on a phone?

The copy comes first, then the stack at the full width of the column behind a rule, with the same strips and the same open card. Long emails truncate rather than scroll.

  • Pro

    A 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

    Fanned Card Deck Features

    Carousels and media

    Five 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

    A 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

    A features section for a dashboard builder: six panels side by side in one rounded frame, five folded to a strip with a sideways label and one open to a headline, a sentence and a small drawing.

  • 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.

  • Pro

    Accordion FAQ

    Accordion lists

    A side-header FAQ for a web analytics tool: the title, one sentence and a contact prompt beside seven questions in an accordion, behind a split divider.