Layouts

Expanding Panels

Expanding panels: five vertical panels in a row, the hovered one expands, the rest shrink, captions fade in. No JS — flex-grow and :hover, in click mode — radio. For service galleries, directions, portfolios and case studies.

What you can change

  • heading and lead — the title and subtitle above the layout; without them — a ghost
  • items — slots in order: 01 panel, 02 panel, 03 panel, 04 panel, 05 panel; title/text/value/media
  • media — your own frame, video or a background from the Background category (surface-*) inside a slot, under the text

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/layout-009?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

One file, zero dependencies, JS only for the cursor light and useId for the radio group. A flex row from 48rem (a column on narrow widths), each panel flex: 1, the expanded one flex-grow 3.2 with a 0.6s transition. hover: :hover and :focus-within; click (data-expand=click): hidden radios with a shared name and a full-panel label, the one with :has(input:checked) is expanded. Panel captions appear only in the expanded one (opacity/transform). Slots: 01 panel, 02 panel, 03 panel, 04 panel, 05 panel — items[i] with title/text/value/media, without them — a ghost. Numbers (numbers) show which slot goes where. Entrance is scroll-driven via animation-timeline: view(), without support — a load cascade; hover — cursor light and edge highlight at the pointer. Palette --vibeui-layout-009-* with light-dark, container queries, DOM order = reading order.

Tags

  • layout
  • accordion
  • panels
  • expand
  • gallery
  • hover
  • portfolio
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…