Expanding Panels Hero

Rooms made of light.

About this block

Expanding Panels HeroPRO

Full-bleed hero filled with side-by-side image panels that expand on hover and auto-cycle, each revealing a name and caption while a giant heading floats above.

Hero132: Expanding Panels Hero

Full-bleed hero built entirely out of side-by-side image panels: hovering or focusing a panel expands it and reveals its name and caption while the others compress, with a giant heading floating above the whole strip on a pointer-events-none layer.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/hero132?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/hero132?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/hero132.tsx and its dependencies.

Quick start

The installed file exports hero132Demo alongside the block: the exact props behind the preview above. Spread it to get a working hero in one line.

tsx
import { Hero132, hero132Demo } from "@/components/beste/block/hero132";

export default function Page() {
  return <Hero132 {...hero132Demo} />;
}

Then replace the demo with your own props. Written out, the same setup looks like this:

tsx
import { Hero132 } from "@/components/beste/block/hero132";

export default function Page() {
  return (
    <Hero132
      heading="Rooms made of light."
      items={[
        {
          image: {
            src: "https://images.unsplash.com/photo-1529809540960-3b92284fff20?w=1200&h=1400&fit=crop",
            alt: "Empty office bathed in soft window light",
          },
          name: "The quiet floor",
          caption: "Workspace study, Auralis interiors",
          href: "/work/quiet-floor",
        },
        {
          image: {
            src: "https://images.unsplash.com/photo-1669250937307-b08a1118b216?w=1200&h=1400&fit=crop",
            alt: "Concrete stairwell with a single shaft of light",
          },
          name: "Stair, descending",
          caption: "Form held against shadow",
          href: "/work/stair",
        },
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
headingstringGiant heading floated above the panels
itemsPanelItem[][]Panels laid out edge to edge, each expandable
classNamestringExtra classes for the outer <section>
ts
type PanelItem = {
  image: PanelImage;
  name: string;
  caption: string;
  href: string;
};

type PanelImage = { src: string; alt: string };

Behavior notes

  • Panels are flex children whose flex-grow ratio changes on interaction: the active panel gets flex-[2.5] and the rest flex-[1], animated with a 700ms ease-out transition on flex-grow for an accordion-style expand, not a crossfade.
  • Both onMouseEnter and onFocus set a panel active, so keyboard tab order expands panels too, unlike a pure hover-only implementation.
  • Panels also auto-cycle every 4000ms via setInterval, independent of hover or focus.
  • Only the active panel shows its name/caption block at full opacity; inactive panels keep the text at opacity-0 and their image dimmed to opacity-70.
  • The heading sits in a pointer-events-none wrapper stacked above the panels, so clicks pass straight through it to the panel links beneath.

More Hero blocks

View all Hero
PRO

hero119

Full-Bleed Display Hero

Full-bleed image hero with an oversized three-word display heading, a row of monospace meta labels, a bold sub-headline, and a featured card with thumbnail, category, paginated index, and title.

PRO

hero157

Full-Bleed Canvas Hero

A hero that splits the viewport in two: an eyebrow, light display heading, two actions, and a hairline proof row on one side, and a full-height photo column floating a live trend metric on the other.

PRO

hero131

Filmstrip Hero

Full-bleed hero whose background crossfades between frames, with a clickable filmstrip of thumbnails pinned along the bottom and an auto-advancing active tile.

PRO

hero140

Animated Tab Hero

Full-bleed monochrome hero with a giant heading and a row of clickable tab chips that fade between text panels (title, description, stat), auto-advancing on a timer with no background swap.

PRO

hero156

Split Screen Panel Hero

Edge-to-edge split hero: a dark half carries the statement, paragraph, outline pill CTA and a ruled detail row, while the other half is a full-height photograph with a pill caption in its corner.

PRO

hero141

Capability Marquee Hero

Full-bleed monochrome hero with a giant display heading, short description, and a continuous bottom marquee of capability chips that pauses on hover.