Skip to content

    Browse components

    Grow Panels

    Row of photo panels where the active one flex-grows open while the rest shrink, auto-advancing with a progress bar.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/grow-panels

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/grow-panels.json

    Usage

    import { GrowPanels } from "@/components/ui/grow-panels";
    
    <GrowPanels
      items={[
        { image: "/alps.jpg", title: "Alpine Lakes", description: "Glacial water, still air." },
        { image: "/coast.jpg", title: "Coastline" },
      ]}
    />

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of { image, title, description? }.
    intervalnumber5000Ms each panel stays open.
    autoPlaybooleantrueAdvance automatically; pauses on hover.
    expandnumber6Width of the open panel vs a closed one.
    gapnumber10Px between panels.
    heightnumber420Height in px.
    classNamestring—Extra classes for the root element.