# Components Collapsible: Icon Collapsible

A collapsible row with a chevron icon that rotates as the panel opens and closes. Use it in menus where a clear visual cue tells readers it expands.

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

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-collapsible-icon-collapsible
```

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-collapsible-icon-collapsible.json"`.

## Depends on

- npm packages: lucide-react, radix-ui
- shadcn/ui components: collapsible
- Installs to: `@/components/blocks/components/collapsible/icon-collapsible`

## About this block

Icon Collapsible is a single expandable row. A trigger bar stretches the
full width of the panel and holds, on the left, a circular icon badge
next to a bold label, and on the right, a chevron that points down when
the panel is closed and up when it is open. Clicking anywhere on the
trigger toggles the panel. The expanded area reveals a simple key/value
list with a ruled total row at the bottom.

The label, icon, and every line in the detail list are independent. You
can swap the shopping cart icon for any other icon, rename the heading,
add or remove rows from the list, and change the values without touching
the layout or the toggle behavior.

## When to use

Reach for this block when you need a compact summary that users can
expand for a quick breakdown without leaving the current view. In a
project management workspace it fits naturally anywhere a task, budget
item, or resource summary should stay tucked until a team member wants
the specifics. It works better than a full accordion group when there is
only one panel to show, and better than a plain card when the content is
secondary and should not compete with the surrounding layout.

A natural flow around it on a Components page:

**Before**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to display the primary content that
  this collapsible supplements
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to label the status or category
  of the item before readers decide to expand

**After**

- [Grouped Collapsible](https://www.shadcn-ui-blocks.com/blocks/components/collapsible/grouped-collapsible)
  when the single row grows into multiple related sections
- [Accordions](https://www.shadcn-ui-blocks.com/blocks/components/accordions) if the expanded content
  becomes rich enough to need section headings

## What you can customize

The block has three distinct parts you can adapt independently:

- **Icon badge.** Swap the icon inside the circular badge to match the
  subject, whether that is a task, a file type, or a team member.
- **Trigger label.** The heading text and the chevron sit in the same
  row, so renaming the label is the only change needed to reframe the
  whole panel for a new context.
- **Detail rows.** Each row in the expanded list is a label/value pair;
  add, remove, or relabel them, and move the divider rule to wherever a
  subtotal or summary line makes sense.

> Tip: keep the detail list to four or five rows so the expanded panel
> stays short enough to read at a glance without scrolling.

## More in Components Collapsible

- [Card Collapsible](https://www.shadcn-ui-blocks.com/blocks/components/collapsible/card-collapsible)
- [Grouped Collapsible](https://www.shadcn-ui-blocks.com/blocks/components/collapsible/grouped-collapsible)
- [Shadowed Collapsible](https://www.shadcn-ui-blocks.com/blocks/components/collapsible/shadowed-collapsible)
- [Side Bordered Collapsible](https://www.shadcn-ui-blocks.com/blocks/components/collapsible/side-bordered-collapsible)
- [Stepped Collapsible](https://www.shadcn-ui-blocks.com/blocks/components/collapsible/stepped-collapsible)
