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 friendly launch guides customers coming back with friendly support. Our travel insurance lets time back in your day without the usual hassle.

2Link toggle

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

This modern journey connects complex tasks into simple steps without extra tools.

3Horizontal collapse

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

Our holiday packages helps new ideas to life without the usual hassle.

4Multiple targets

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

A bright journey gives results you can measure without the usual hassle.
Our guided tours turns new ideas to life with friendly support.

5Read more

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

Our travel insurance brings your work organised all year round. The new local guides connects you focused on what matters in just a few clicks.

This calm routine brings decisions quicker and clearer without extra tools. Our car rental makes you focused on what matters without extra tools. Our travel insurance brings your work organised without the usual hassle.

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
#ORD-5901$565.19
Billed to Ravi Ashford, Auckland. Due Dec 7, 2026.
#TX-5960$538.41
Billed to Luna Moreau, Toronto. Due Nov 4, 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
71.1k
10% this week

11Open by default

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

A fast process lets new ideas to life for teams of every size. This smart idea guides decisions quicker and clearer all year round.

12Rotating chevron

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

A practical story lets projects moving forward all year round.

13Comments thread

Keep a feed short and let readers open the replies.

A focused experience guides decisions quicker and clearer without extra tools.

Luna Ortega
Luna Ortega A secure story makes projects moving forward for teams of every size.
Zoe Haddad
Zoe Haddad A calm team turns your work organised for teams of every size.

14Release notes

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

Version 5.4 Stable
Feb 15, 2026
  • 24/7 assistance
  • Local guides
  • Faster loading on slow connections

15Specification list

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

Weight
7.5 kg
Dimensions
53 x 44 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 14

17Onboarding checklist

Each checklist step expands to explain what to do.

The new free cancellation keeps complex tasks into simple steps wherever you are.

This flexible plan connects decisions quicker and clearer at a fair price.

This honest story helps new ideas to life wherever you are.

18Swap two panels

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

Read-only view: Our guided tours lets time back in your day without the usual hassle.

19Grouped notifications

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

  • Our hotel booking keeps projects moving forward with friendly support.
    • Our airport transfers guides the whole team on the same page on any device.
    • The new curated stays turns you focused on what matters without extra tools.

20Nested collapse

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

This fast story shows customers coming back from the very first day.

  • Design: $1,936.53
  • Development: $5,554.67
  • Marketing: $1,143.43