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.
Installation
npx shadcn@latest add @glint-ui/grow-panelsFirst 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
| Prop | Type | Default | Description |
|---|---|---|---|
| items | ReactNode | — | Array of { image, title, description? }. |
| interval | number | 5000 | Ms each panel stays open. |
| autoPlay | boolean | true | Advance automatically; pauses on hover. |
| expand | number | 6 | Width of the open panel vs a closed one. |
| gap | number | 10 | Px between panels. |
| height | number | 420 | Height in px. |
| className | string | — | Extra classes for the root element. |