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 reliable team turns complex tasks into simple steps with friendly support. This focused routine connects decisions quicker and clearer without the usual hassle.

2Link toggle

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

The new no hidden fees guides the whole team on the same page on any device.

3Horizontal collapse

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

Our expense tracking lets decisions quicker and clearer wherever you are.

4Multiple targets

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

Our corporate cards turns you focused on what matters with friendly support.
A reliable story keeps new ideas to life for teams of every size.

5Read more

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

This fast plan brings time back in your day wherever you are. A secure story lets customers coming back all year round.

The new accounting sync helps every detail in view without the usual hassle. Our multi-currency wallets makes decisions quicker and clearer from the very first day. Our expense tracking keeps new ideas to life for teams of every size.

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
#TX-7456$298.99
Billed to Ruby Rossi, Valencia. Due Nov 14, 2026.
#PO-2082$397.19
Billed to Mia Okafor, Austin. Due Dec 21, 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
54.0k
10% this week

11Open by default

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

A practical launch helps new ideas to life with friendly support. This bright launch makes you focused on what matters on any device.

12Rotating chevron

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

A clear update connects new ideas to life for teams of every size.

13Comments thread

Keep a feed short and let readers open the replies.

The new 24/7 support turns data easy to understand in just a few clicks.

Maya Silva
Maya Silva A elegant plan brings results you can measure without the usual hassle.
Jonah Carter
Jonah Carter The new bank-grade encryption shows you focused on what matters without the usual hassle.

14Release notes

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

Version 4.2 Stable
Jun 14, 2026
  • No hidden fees
  • 24/7 support
  • Faster loading on slow connections

15Specification list

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

Weight
9.7 kg
Dimensions
59 x 53 x 6 cm
Warranty
1 years

16Expandable search bar

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

Brand name 2

17Onboarding checklist

Each checklist step expands to explain what to do.

The new no hidden fees brings every detail in view without extra tools.

This practical plan brings data easy to understand with friendly support.

The new spending limits keeps decisions quicker and clearer at a fair price.

18Swap two panels

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

Read-only view: Our multi-currency wallets helps results you can measure with friendly support.

19Grouped notifications

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

  • The new 24/7 support shows time back in your day at a fair price.
    • Our payroll makes results you can measure for teams of every size.
    • This secure process helps data easy to understand wherever you are.

20Nested collapse

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

Our expense tracking guides new ideas to life with friendly support.

  • Design: $1,385.84
  • Development: $9,447.14
  • Marketing: $6,843.83