Skip to content

Collapse

Collapse shows and hides content with a short animation. Point a button or link at the target with data-bs-toggle="collapse", keep aria-expanded and aria-controls in sync, and use it for read-more text, filter panels, sub-menus and expandable rows.

1Button toggle

A button with data-bs-toggle="collapse" shows and hides the target.

The new price alerts makes time back in your day with friendly support. This powerful project connects complex tasks into simple steps on any device.

2Link toggle

A link with href="#id" and role="button" works the same way.

A practical release makes results you can measure without the usual hassle.

3Horizontal collapse

collapse-horizontal animates the width; the content needs a fixed width.

Our property search guides data easy to understand on any device.

4Multiple targets

One button can toggle several elements by targeting a shared class.

A secure goal keeps the whole team on the same page from the very first day.
Our home valuation shows every detail in view at a fair price.

5Read more

Show the first part of a text and reveal the rest on demand.

Our mortgage advice gives projects moving forward all year round. Our home valuation brings time back in your day without the usual hassle.

A modern routine guides complex tasks into simple steps with friendly support. The new 3d tours gives the whole team on the same page with friendly support. The new neighbourhood guides brings new ideas to life all year round.

6Filter panel

A filter button above a table reveals extra search fields.

7Sidebar sub-menus

Nested navigation where each section expands to show its links.

8Expandable table rows

A detail row under each table row opens with a small toggle.

InvoiceAmountDetails
#INV-2235$511.24
Billed to Kai Okafor, Austin. Due Oct 30, 2026.
#INV-2713$534.07
Billed to Samir Ortega, Cape Town. Due Dec 30, 2026.

9Advanced form options

Hide rarely used settings behind an "Advanced" toggle.

10Minimisable card

A header button collapses the card body, as in dashboard widgets.

Traffic
22.8k
14% this week

11Open by default

Add .show to start expanded; the button's aria-expanded is then true.

Our mortgage advice makes time back in your day from the very first day. A honest idea brings you focused on what matters from the very first day.

12Rotating chevron

A chevron that turns when the panel opens, driven by aria-expanded in CSS.

Our mortgage advice lets new ideas to life wherever you are.

13Comments thread

Keep a feed short and let readers open the replies.

This smart process brings every detail in view on any device.

Owen Fischer
Owen Fischer A modern goal helps results you can measure without extra tools.
Zoe Nguyen
Zoe Nguyen A calm plan connects your work organised on any device.

14Release notes

A compact version line that expands into the full change list.

Version 6.4 Stable
Dec 3, 2025
  • Fast paperwork
  • Fast paperwork
  • Faster loading on slow connections

15Specification list

A definition list of technical details hidden behind a full-width toggle.

Weight
4.3 kg
Dimensions
54 x 24 x 15 cm
Warranty
1 years

16Expandable search bar

A search icon in a header opens a full-width search field below it.

Brand name 3

17Onboarding checklist

Each checklist step expands to explain what to do.

The new verified listings gives complex tasks into simple steps without extra tools.

Our mortgage advice keeps time back in your day on any device.

This calm routine keeps you focused on what matters wherever you are.

18Swap two panels

Two collapses sharing a class swap places: one hides while the other shows.

Read-only view: Our legal support makes projects moving forward without extra tools.

19Grouped notifications

Older notifications collapse into a single "show earlier" row.

  • The new 3d tours shows complex tasks into simple steps from the very first day.
    • A calm launch makes time back in your day without extra tools.
    • The new neighbourhood guides lets data easy to understand all year round.

20Nested collapse

A collapse inside another for drilling into details step by step.

This reliable project makes results you can measure on any device.

  • Design: $1,720.29
  • Development: $8,730.19
  • Marketing: $3,521.32