Skip to content

Collapse

Collapse shows and hides content with a short animation. Point a button or link at the target with data-bs-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-bs-toggle="collapse" shows and hides the target.

Children are always welcome, with a menu made just for them. Private dining rooms seat up to forty guests for birthdays and business dinners.

2Link toggle

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

Order for pickup or delivery and enjoy the same dishes at home.

3Horizontal collapse

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

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

4Multiple targets

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

Start in minutes and get help from a real person whenever you need it.
Our team has done this many times, so you never have to guess.

5Read more

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

We keep things simple, so you can focus on what matters to you. Every dish is cooked to order, so tell us if you would like anything changed.

Our menu changes with the seasons and the best produce from nearby farms. Our sommelier has paired each dish with wines from small family vineyards. We keep things simple, so you can focus on what matters to you.

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-1934$807.80
Billed to Sofia Quinn, Barcelona. Due Jan 13, 2027.
#ORD-4981$836.79
Billed to Isla Harlow, Montreal. Due Nov 1, 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
42.8k
17% this week

11Open by default

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

Children are always welcome, with a menu made just for them. Friendly people answer your questions quickly, by phone, chat or email.

12Rotating chevron

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

Our terrace is open from spring to autumn, with heaters for cooler evenings.

13Comments thread

Keep a feed short and let readers open the replies.

Our menu changes with the seasons and the best produce from nearby farms.

Tariq Carter
Tariq Carter Thousands of guests already trust us, and we work hard to keep it that way.
Finn Patel
Finn Patel Cooking classes on Saturday mornings teach you our favourite recipes.

14Release notes

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

Version 2.1 Stable
Oct 3, 2026
  • Chef's specials
  • Vegan options
  • Faster loading on slow connections

15Specification list

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

Weight
1.4 kg
Dimensions
54 x 54 x 20 cm
Warranty
2 years

16Expandable search bar

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

Wrenora

17Onboarding checklist

Each checklist step expands to explain what to do.

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

Vegan, vegetarian and gluten-free dishes are marked clearly on every menu.

Book a table online in seconds, or call us for groups of eight or more.

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.

  • We listen first, then build a plan around what you actually need.
    • Every dish is cooked to order, so tell us if you would like anything changed.
    • We measure success by how many guests come back and tell their friends.

20Nested collapse

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

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

  • Design: $4,124.86
  • Development: $12,742.74
  • Marketing: $7,382.23