Loading component…
Loading component…
Slim gradient panels with one open product screen in the middle – pick a panel and it glides open.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import AgentGallery from ./agent-gallery.
import { AgentGallery } from "@/components/ui/agent-gallery";
export function AgentsSection() {
return <AgentGallery title="Agents that run your playbook" />;
}| Name | Type | Default | Description |
|---|---|---|---|
| title | string | Heading above the panels | |
| subtitle | string | Line under the heading | |
| items | GalleryItem[] | Each { id, name, description, colors: [strong, soft], trigger, steps, skills, guardrail } – drives the panel colors, the label and the screen | |
| defaultIndex | number | the middle item | Panel that starts open |
| className | string | Extra class on the root |
Follows its own width: below 760px the open panel fills the width with one slim panel peeking on each side
Every panel shares one gradient artwork drawn in CSS – only two colors per item change, so it scales crisply
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"