Skip to content

Collapse

Collapse shows and hides content with a short animation. Point a button or link at the target with data-ui-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-ui-toggle="collapse" shows and hides the target.

A flexible launch helps results you can measure at a fair price. A flexible experience makes projects moving forward all year round.

2Link toggle

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

The new flexible dates shows your work organised in just a few clicks.

3Horizontal collapse

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

Our airport transfers shows data easy to understand for teams of every size.

4Multiple targets

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

A smart community brings results you can measure wherever you are.
Our guided tours gives results you can measure with friendly support.

5Read more

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

Our hotel booking guides data easy to understand from the very first day. A focused update keeps results you can measure on any device.

A smart release gives the whole team on the same page at a fair price. This friendly routine makes every detail in view on any device. A modern experience lets data easy to understand from the very first day.

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
#PO-5864$416.24
Billed to Mason Whitaker, Oslo. Due Nov 25, 2026.
#INV-6229$805.93
Billed to Diego Mensah, Valencia. Due Dec 17, 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
64.6k
3% this week

11Open by default

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

A honest team guides results you can measure in just a few clicks. This fast story connects 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.

A honest dashboard guides decisions quicker and clearer from the very first day.

13Comments thread

Keep a feed short and let readers open the replies.

Our travel insurance shows projects moving forward on any device.

Ruby Okafor
Ruby Okafor The new flexible dates helps time back in your day from the very first day.
Theo Brennan
Theo Brennan This flexible routine gives every detail in view for teams of every size.

14Release notes

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

Version 2.0 Stable
Oct 16, 2026
  • Flexible dates
  • Curated stays
  • Faster loading on slow connections

15Specification list

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

Weight
6.6 kg
Dimensions
21 x 31 x 11 cm
Warranty
2 years

16Expandable search bar

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

Brand name 6

17Onboarding checklist

Each checklist step expands to explain what to do.

The new flexible dates keeps decisions quicker and clearer all year round.

Our guided tours connects new ideas to life all year round.

Our hotel booking keeps new ideas to life without extra tools.

18Swap two panels

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

Read-only view: This honest story makes you focused on what matters all year round.

19Grouped notifications

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

  • This simple process turns complex tasks into simple steps all year round.
    • This fast community lets new ideas to life at a fair price.
    • This clear release shows results you can measure wherever you are.

20Nested collapse

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

The new flexible dates guides every detail in view from the very first day.

  • Design: $2,458.44
  • Development: $19,419.91
  • Marketing: $1,714.57