Skip to content
Fable

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 detail is handled by people who care about getting it right. Local guides show you the places that never make it into guidebooks.

2Link toggle

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

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

3Horizontal collapse

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

Family rooms, adults-only retreats and pet-friendly stays in one search.

4Multiple targets

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

Airport transfers, tours and dinners are arranged before you arrive.
Start in minutes and get help from a real person whenever you need it.

5Read more

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

Thousands of travellers already trust us, and we work hard to keep it that way. Our team has done this many times, so you never have to guess.

We listen first, then build a plan around what you actually need. Friendly people answer your questions quickly, by phone, chat or email. 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
#ORD-1835$740.56
Billed to Arjun Novak, Seoul. Due Nov 15, 2026.
#INV-7836$846.07
Billed to Luna Harlow, Auckland. Due Feb 10, 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
43.5k
27% this week

11Open by default

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

Family rooms, adults-only retreats and pet-friendly stays in one search. Airport transfers, tours and dinners are arranged before you arrive.

12Rotating chevron

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

We keep things simple, so you can focus on what matters to you.

13Comments thread

Keep a feed short and let readers open the replies.

We listen first, then build a plan around what you actually need.

Ava Patel
Ava Patel From city breaks to safaris, we plan trips around how you like to travel.
Freya Morgan
Freya Morgan Every detail is handled by people who care about getting it right.

14Release notes

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

Version 5.1 Stable
Nov 5, 2025
  • Curated stays
  • Local guides
  • Faster loading on slow connections

15Specification list

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

Weight
8.7 kg
Dimensions
35 x 54 x 16 cm
Warranty
1 years

16Expandable search bar

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

Fable

17Onboarding checklist

Each checklist step expands to explain what to do.

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

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

Flexible dates help you find quieter weeks and better prices.

18Swap two panels

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

Read-only view: Our team has done this many times, so you never have to guess.

19Grouped notifications

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

  • Our travel experts are on call around the clock while you are away.
    • Travel insurance and car rental can be added in a single click.
    • Members get room upgrades and late check-out at selected hotels.

20Nested collapse

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

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

  • Design: $2,946.30
  • Development: $16,288.33
  • Marketing: $4,803.11