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.

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

2Link toggle

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

Every detail is handled by people who care about getting it right.

3Horizontal collapse

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

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

4Multiple targets

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

Members get room upgrades and late check-out at selected hotels.
From city breaks to safaris, we plan trips around how you like to travel.

5Read more

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

Friendly people answer your questions quickly, by phone, chat or email. Travel insurance and car rental can be added in a single click.

We find the best price, and if you see it cheaper we match it. Family rooms, adults-only retreats and pet-friendly stays in one search. Start in minutes and get help from a real person whenever you need it.

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-2071$199.79
Billed to Amara Moreau, Denver. Due Dec 27, 2026.
#PO-2522$347.19
Billed to Felix Nguyen, Austin. Due Dec 30, 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
83.3k
25% this week

11Open by default

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

Clear prices, honest advice and no surprises along the way. We listen first, then build a plan around what you actually need.

12Rotating chevron

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

Free cancellation on most stays means you can book now and decide later.

13Comments thread

Keep a feed short and let readers open the replies.

Flexible dates help you find quieter weeks and better prices.

Mateo Fischer
Mateo Fischer Thousands of travellers already trust us, and we work hard to keep it that way.
Samir Quinn
Samir Quinn Members get room upgrades and late check-out at selected hotels.

14Release notes

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

Version 2.3 Stable
Jan 11, 2026
  • Best price guarantee
  • Local guides
  • Faster loading on slow connections

15Specification list

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

Weight
5.3 kg
Dimensions
51 x 52 x 8 cm
Warranty
3 years

16Expandable search bar

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

Yarais

17Onboarding checklist

Each checklist step expands to explain what to do.

Our travel experts are on call around the clock while you are away.

Every trip supports local businesses and responsible tourism.

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

18Swap two panels

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

Read-only view: We keep things simple, so you can focus on what matters to you.

19Grouped notifications

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

  • Every detail is handled by people who care about getting it right.
    • From city breaks to safaris, we plan trips around how you like to travel.
    • Friendly people answer your questions quickly, by phone, chat or email.

20Nested collapse

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

Airport transfers, tours and dinners are arranged before you arrive.

  • Design: $2,055.60
  • Development: $16,064.59
  • Marketing: $6,959.78