Skip to content
Lyraia

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.

Our menu changes with the seasons and the best produce from nearby farms. We have been feeding this neighbourhood for over a decade, and we still love it.

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.

Thousands of guests 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.

Cooking classes on Saturday mornings teach you our favourite recipes.
Our sommelier has paired each dish with wines from small family vineyards.

5Read more

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

Order for pickup or delivery and enjoy the same dishes at home. We listen first, then build a plan around what you actually need.

Our team has done this many times, so you never have to guess. We have been feeding this neighbourhood for over a decade, and we still love it. Vegan, vegetarian and gluten-free dishes are marked clearly on every menu.

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-7690$687.86
Billed to Mason Alvarez, Valencia. Due Nov 26, 2026.
#PO-1164$260.87
Billed to Theo Mensah, Melbourne. Due Jan 20, 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
51.1k
23% this week

11Open by default

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

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

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

13Comments thread

Keep a feed short and let readers open the replies.

Every dish is cooked to order, so tell us if you would like anything changed.

Ava Brennan
Ava Brennan Book a table online in seconds, or call us for groups of eight or more.
Ethan Duarte
Ethan Duarte Children are always welcome, with a menu made just for them.

14Release notes

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

Version 4.1 Stable
May 1, 2026
  • Vegan options
  • Local ingredients
  • Faster loading on slow connections

15Specification list

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

Weight
3.0 kg
Dimensions
49 x 57 x 5 cm
Warranty
3 years

16Expandable search bar

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

Lyraia

17Onboarding checklist

Each checklist step expands to explain what to do.

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

Our team has done this many times, so you never have to guess.

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

18Swap two panels

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

Read-only view: Our sommelier has paired each dish with wines from small family vineyards.

19Grouped notifications

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

  • Start in minutes and get help from a real person whenever you need it.
    • Thousands of guests already trust us, and we work hard to keep it that way.
    • Our terrace is open from spring to autumn, with heaters for cooler evenings.

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: $4,855.83
  • Development: $15,205.27
  • Marketing: $5,512.02