Bento Hover Expand
Four tall tiles share a row; the hovered or focused one springs wide to reveal its detail and metric while its siblings narrow and dim.
bentohoverexpandaccordionlayout
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/bento-hover-expand.tsx.
$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/bento-hover-expand.json"Manual install+
1. Install the dependencies.
$pnpm add lucide-react motion2. Copy the code from the Code tab above into your project. It imports the cn helper from @/lib/utils, which every shadcn project already has.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
AI prompt
Paste into Claude, Cursor, v0 or Lovable
Add the "Bento Hover Expand" component from PixelPapa UI to this project. What it is: Four tall tiles share a row; the hovered or focused one springs wide to reveal its detail and metric while its siblings narrow and dim. Category: Bento Grids. Depends on: lucide-react, motion. 1. Install it with the shadcn CLI: npx shadcn@latest add "https://pixelpapa.com/r/bento-hover-expand.json" (If the CLI is unavailable, fetch that URL, write files[0].content to components/pixelpapa/bento-hover-expand.tsx and install the listed dependencies.) 2. Import it from "@/components/pixelpapa/bento-hover-expand" and place it where I describe below. 3. Keep its animation timings and accessibility attributes. Replace the demo copy and data with content that fits my product, and use my existing theme tokens (bg-background, text-foreground, bg-primary, border-border) rather than hard-coded colours. Where to use it: <describe the page and position here>
More bento grids
- Bento AI CapabilitiesAn AI feature bento: an answer streams word by word with citations, an agent ticks through its steps, a voice waveform pulses and a reply cross-fades between languages.
- Bento AnalyticsA metrics bento: an MRR curve that morphs between ranges, a donut whose legend isolates segments, a ticking live-visitor count, weekday bars and a row of sparklines.
- Bento CollaborationA multiplayer bento: named cursors glide across a shared board, comments pop into a thread, a teammate types live and reactions float up from a decision.
- Bento DeveloperA developer bento: a terminal replays a deploy line by line, an API response swaps with the selected endpoint, a p95 latency graph scrolls live and uptime bars fill in.
- Bento Product OverviewFive product tiles that each run a tiny working demo: a scrubbable revenue line, a self-typing command bar, spring switches, a fanning avatar stack and a live timer.
- Bento Security GlobeA security bento around a slowly rotating dotted SVG globe with region pins and traffic arcs, flanked by a ticking threat counter, a key-rotation ring and a residency picker.