Command Palette

Search for a command to run...

Components/Expandable Card

Expandable Card

A modern expandable card component with layout animations and image previews.

import ExpandableCard from "@/components/ui/expandable-card"

export default function Example() {
  return <ExpandableCard />
}

Installation

pnpm dlx shadcn@latest add https://dev-roshan-com.vercel.app/r/expandable-card.json

Usage

Import the component in your project pages.

import ExpandableCard from "@/components/ui/expandable-card"

export default function Example() {
  return <ExpandableCard />
}

API Reference

Configure your component behavior using these props.

PropTypeDefaultDescription
cardsExpandableCardItem[]DEFAULT_CARDSArray of expandable card items.
classNamestring-Additional container styles.