# Components Card: Expandable Card

A card that grows to reveal more text or controls when opened. Use it for FAQs, settings, or summaries that hide detail until the reader wants it.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/cards/expandable-card
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/cards/expandable-card.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-cards-expandable-card
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-cards-expandable-card.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, card
- Installs to: `@/components/blocks/components/cards/expandable-card`

## About this block

Expandable Card is a single card with a header, a short body paragraph, and
a footer row. The header holds a title and a one-line description. The body
shows a brief summary paragraph that is always visible. The footer contains
a Cancel button on the left and, on the right, a chevron toggle button
paired with a primary action button. Clicking the chevron reveals a bordered
section below the summary that lists additional detail items, and the
chevron rotates to signal the open state. Clicking it again collapses that
section with a smooth height transition.

The visible and hidden regions are independent. You can rewrite the title,
description, summary copy, and expanded list items without affecting the
expand behavior. The footer buttons are also free to relabel or repoint, and
the hidden section can hold any short content in place of the bullet list.

## When to use

Reach for this block when a card needs to surface a short answer up front
and let curious readers pull up more without leaving the page. It fits well
on an AI assistant product's feature or pricing page where a plan summary
is visible at a glance and the full capability list sits one tap away. It
beats a plain static card when the extra detail would make the default view
feel cluttered, and it beats a full modal when the information is short
enough to stay in context.

A natural flow around it on a Components page:

**Before**

- [Icon Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/icon-card) to introduce a feature
  category with a glyph before the user digs into detail
- [Accordions](https://www.shadcn-ui-blocks.com/blocks/components/accordions) when you need several
  collapsible items stacked rather than one self-contained card

**After**

- [Status Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/status-card) to follow up with a
  live state indicator once the reader has acted
- [Collapsible](https://www.shadcn-ui-blocks.com/blocks/components/collapsible) for cases where the
  show-more pattern needs to span larger content regions

## What you can display

The card suits any scenario where a brief prompt leads to a deeper list on
demand. A few good fits:

- **Plan capability details.** Show the headline tier description up front
  and expand to the full feature checklist only when the reader wants it.
- **Onboarding step summaries.** Present the step title and a one-sentence
  goal, then reveal prerequisites or sub-steps for users who need guidance.
- **Configuration option previews.** Surface the current setting in the
  body and expand to show the full set of advanced controls below it.

> Tip: keep the expanded list to five items or fewer so the card does not
> dwarf its neighbors when open and the transition stays snappy.

## More in Components Cards

- [Border Accent Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-accent-card)
- [Border Animation Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-animation-card)
- [Border Gradient Animation Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-gradient-animation-card)
- [Border Highlight Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-highlight-card)
- [Corner Ribbon Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/corner-ribbon-card)
- [Cutout Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/cutout-border-card)
- [Dashed Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/dashed-border-card)
- [Double Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/double-border-card)
- [Gradient Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/gradient-border-card)
- [Hover Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/hover-effect-card)
- [Hover Reveal Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/hover-reveal-card)
- [Icon Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/icon-card)
- [Magnetic Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/magnetic-card)
- [Neon Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/neon-border-card)
- [Perspective Hover Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/perspective-hover-card)
- [Progress Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/progress-card)
- [Pulse Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/pulse-border-card)
- [Shimmer Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/shimmer-effect-card)
- [Stacked Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/stacked-card)
- [Status Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/status-card)
- [Tilt Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/tilt-effect-card)
