# Features, tab cards

- **[Sections](/blocks/)**
- **[Features](/blocks/features/)**
- **Features, tab cards**

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

- **CLI**

  ```
  npx shadcn add https://ui.klarhimmel.com/r/features-tabs-cards.json
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/features-tabs-cards';
  ```

Also called

- 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

- **[Hero, centered](/blocks/hero/centered)**
- **[Steps, horizontal](/blocks/steps/horizontal)**
- **[Call to action, band](/blocks/cta/banner)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import FeaturesTabsCards from '@/components/klarhimmel/blocks/features-tabs-cards';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <FeaturesTabsCards props={{
          "eyebrow": "Name the group in two or three words",
          "title": "Say what the list of choices takes the reader through",
          "description": "Open with one or two short lines that tell the reader what to pick between.",
          "items": [
            {
              "label": "Name the first choice",
              "description": "Say in one line what the reader gets from the first choice.",
              "caption": "Say what the picture shows",
              "media": {
                "src": "/pictures/photo-surf1.avif",
                "alt": "Surfboards lined up against a tree"
              }
            },
            {
              "label": "Name the second choice",
              "description": "Say in one line what the reader gets from the second choice.",
              "caption": "Say what the picture shows",
              "media": {
                "src": "/pictures/photo-tree1.avif",
                "alt": "An oak canopy seen from below"
              }
            },
            {
              "label": "Name the third choice",
              "description": "Say in one line what the reader gets from the third choice.",
              "caption": "Say what the picture shows",
              "media": {
                "src": "/pictures/photo-wed1.avif",
                "alt": "A timber barn hall dressed with white fabric and tables"
              }
            }
          ]
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

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

- **eyebrow**: Text, up to 40 characters.
- **title**: Text, up to 100 characters.
- **description**: Text, up to 240 characters.
- **items**: List of 2 to 6. Each item: label, description, caption, media.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/features/tabs)

[Next](/blocks/features/terminal)
