Features, tab cards


Install
npx shadcn add https://ui.klarhimmel.com/r/features-tabs-cards.jsonDetailsAbout, usage, props and more
A left-aligned heading and lead above a numbered list of cards at the left, the first open with its line, and one picture with a caption at the right that follows the…
Import
Import
- features/tabs-cards
- About
- A left-aligned heading and lead above a numbered list of cards at the left, the first open with its line, and one picture with a caption at the right that follows the open card.
- Category
- What it does, as a grid, a list, tabs or alternating rows. New project? Set it up once: /get-started/installation.
Notes
When to use it
A heading and lead above a numbered list of cards with one open at a time, and a single picture with a caption that follows the open card. Use features-tabs when the panels need more room.
Writing for it
- The first card starts open, so put the feature you most want seen first, with its one line of explanation. - Give every card a picture and a caption that stand alone, since only the open one is shown at the right. - Number the cards in the order a visitor should read them, because the list is numbered for you.
Watch out for
It works without script by using native disclosure, so the picture changes only where the browser supports it. On a phone the picture sits under the list, so a long open card pushes it far down.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
Props
The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Name the group in two or three words' | Text, up to 40 characters. |
title | string | 'Say what the list of choices takes …' | Text, up to 100 characters. |
description | string | 'Open with one or two short lines th…' | Text, up to 240 characters. |
items | { label, description, caption, media }[] | 4 items | List of 2 to 6. Each item: label, description, caption, media. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |