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.

Travel insurance and car rental can be added in a single click. Thousands of travellers already trust us, and we work hard to keep it that way.

2Link toggle

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

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

3Horizontal collapse

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

We find the best price, and if you see it cheaper we match it.

4Multiple targets

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

Family rooms, adults-only retreats and pet-friendly stays in one search.
Free cancellation on most stays means you can book now and decide later.

5Read more

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

We listen first, then build a plan around what you actually need. Every trip supports local businesses and responsible tourism.

Members get room upgrades and late check-out at selected hotels. Free cancellation on most stays means you can book now and decide later. From city breaks to safaris, we plan trips around how you like to travel.

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-9264$792.31
Billed to Hana Morgan, Porto. Due Dec 4, 2026.
#PO-6888$87.04
Billed to Lucas Novak, Porto. Due Nov 15, 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
43.4k
7% this week

11Open by default

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

Friendly people answer your questions quickly, by phone, chat or email. We keep things simple, so you can focus on what matters to you.

12Rotating chevron

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

Local guides show you the places that never make it into guidebooks.

13Comments thread

Keep a feed short and let readers open the replies.

Every trip supports local businesses and responsible tourism.

Priya Delgado
Priya Delgado Family rooms, adults-only retreats and pet-friendly stays in one search.
Omar Sato
Omar Sato Our team has done this many times, so you never have to guess.

14Release notes

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

Version 3.8 Stable
May 28, 2026
  • Best price guarantee
  • 24/7 assistance
  • Faster loading on slow connections

15Specification list

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

Weight
2.1 kg
Dimensions
22 x 35 x 13 cm
Warranty
3 years

16Expandable search bar

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

Nimbus

17Onboarding checklist

Each checklist step expands to explain what to do.

Every hotel on our list is visited and reviewed by our own travel team.

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

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

18Swap two panels

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

Read-only view: We find the best price, and if you see it cheaper we match it.

19Grouped notifications

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

  • Our travel experts are on call around the clock while you are away.
    • We listen first, then build a plan around what you actually need.
    • 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.

Thousands of travellers already trust us, and we work hard to keep it that way.

  • Design: $3,704.09
  • Development: $14,889.61
  • Marketing: $6,430.66