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.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
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

Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.club/c/layout-009?lang=en&theme=dark
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…
How to use
<Layout009
heading="Layout heading"
lead="A one-line subtitle."
items={[
{ title: "panel", text: "The main thing, briefly." },
{ title: "panel", text: "The main thing, briefly." },
{ title: "panel", text: "The main thing, briefly." },
{ title: "panel", text: "The main thing, briefly." },
{ title: "panel", text: "The main thing, briefly." },
]}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Expand
expand· default: hover- Numbers
numbers· default: on- Accent
accent· default: theme colour
More in Layouts
FAQ
- How do I add Expanding Panels with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Expanding Panels depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Expanding Panels?
- Adapt: 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. Keep as installed: the imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; the local --vibeui-layout-009-* palette — do not swap it for your theme tokens; expansion via flex-grow and a transition — not via JS width measurement; :focus-within gives keyboard expansion.
- Is Expanding Panels free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/layout-009.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
Technical notes
A composite block: imports from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone. One file, zero npm 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
- composite
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…