Skip to content

Expanding Panels

A row of tall project panels: hover or focus one and it widens to show its title and details while the others fold into vertical labels. Stacks into an accordion on phones.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/expanding-panels
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

With video

Put a <HoverVideo> in a panel and its clip plays while that panel is open under the pointer or focus.

API Reference