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.

We measure success by how many guests come back and tell their friends. 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.

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

3Horizontal collapse

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

Bread is baked every morning and pasta is rolled by hand in our kitchen.

4Multiple targets

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

Our terrace is open from spring to autumn, with heaters for cooler evenings.
Clear prices, honest advice and no surprises along the way.

5Read more

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

Cooking classes on Saturday mornings teach you our favourite recipes. Our team has done this many times, so you never have to guess.

Every dish is cooked to order, so tell us if you would like anything changed. Thousands of guests already trust us, and we work hard to keep it that way. We measure success by how many guests come back and tell their friends.

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
#INV-1505$139.05
Billed to Lea Whitaker, Melbourne. Due Feb 6, 2027.
#ORD-1562$303.64
Billed to Felix Haddad, Oslo. Due Nov 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
89.8k
18% this week

11Open by default

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

Every detail is handled by people who care about getting it right. Order for pickup or delivery and enjoy the same dishes at home.

12Rotating chevron

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

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

13Comments thread

Keep a feed short and let readers open the replies.

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

Sofia Lindqvist
Sofia Lindqvist Clear prices, honest advice and no surprises along the way.
Theo Harlow
Theo Harlow We have been feeding this neighbourhood for over a decade, and we still love it.

14Release notes

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

Version 2.7 Stable
Sep 2, 2026
  • Chef's specials
  • Chef's specials
  • Faster loading on slow connections

15Specification list

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

Weight
1.9 kg
Dimensions
59 x 36 x 16 cm
Warranty
2 years

16Expandable search bar

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

Yaraly Labs

17Onboarding checklist

Each checklist step expands to explain what to do.

Cooking classes on Saturday mornings teach you our favourite recipes.

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

Children are always welcome, with a menu made just for them.

18Swap two panels

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

Read-only view: Bread is baked every morning and pasta is rolled by hand in our kitchen.

19Grouped notifications

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

  • Every dish is cooked to order, so tell us if you would like anything changed.
    • Vegan, vegetarian and gluten-free dishes are marked clearly on every menu.
    • We listen first, then build a plan around what you actually need.

20Nested collapse

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

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

  • Design: $2,338.66
  • Development: $15,238.29
  • Marketing: $6,036.80