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.

Community events keep you motivated, from fun runs to workshops. We keep things simple, so you can focus on what matters to you.

2Link toggle

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

Clear prices, honest advice and no surprises along the way.

3Horizontal collapse

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

Certified coaches design every session around your level and your goals.

4Multiple targets

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

Open 24 hours, so you can train whenever it suits your day.
Our recovery spa has a sauna, cold plunge and massage rooms.

5Read more

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

More than sixty classes a week, from sunrise yoga to late-night spin. Track your progress in the app and see how far you have come.

Our team has done this many times, so you never have to guess. More than sixty classes a week, from sunrise yoga to late-night spin. Open 24 hours, so you can train whenever it suits your 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-1960$649.96
Billed to Ravi Silva, Kyoto. Due Nov 5, 2026.
#TX-3685$593.84
Billed to Noah Okafor, Austin. Due Jan 14, 2027.

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
12.0k
13% this week

11Open by default

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

Certified coaches design every session around your level and your goals. Community events keep you motivated, from fun runs to workshops.

12Rotating chevron

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

Online coaching keeps you on track when you travel.

13Comments thread

Keep a feed short and let readers open the replies.

Start in minutes and get help from a real person whenever you need it.

Mateo Nguyen
Mateo Nguyen We keep things simple, so you can focus on what matters to you.
Theo Varga
Theo Varga Modern equipment is cleaned, serviced and ready every day.

14Release notes

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

Version 4.2 Stable
Apr 18, 2026
  • Open 24/7
  • Community events
  • Faster loading on slow connections

15Specification list

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

Weight
8.9 kg
Dimensions
49 x 42 x 7 cm
Warranty
2 years

16Expandable search bar

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

Hive Labs

17Onboarding checklist

Each checklist step expands to explain what to do.

Friendly people answer your questions quickly, by phone, chat or email.

Our team has done this many times, so you never have to guess.

Track your progress in the app and see how far you have come.

18Swap two panels

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

Read-only view: Nutrition plans fit your routine and the food you actually enjoy.

19Grouped notifications

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

  • Our recovery spa has a sauna, cold plunge and massage rooms.
    • Pause or change your membership any time, with no long contracts.
    • Every detail is handled by people who care about getting it right.

20Nested collapse

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

We measure success by how many members come back and tell their friends.

  • Design: $1,399.80
  • Development: $10,974.00
  • Marketing: $1,211.76