Docs / Components / Expandable Cards

Expandable Cards

A group of vertical cards that expand smoothly on hover using Framer Motion layout animations. Perfect for displaying featured collections or portfolio categories.

Mountain Retreat

Mountain Retreat

Deep Forest

Deep Forest

Ocean Breeze

Ocean Breeze

Golden Desert

Golden Desert

Dependencies

Install the following dependencies to use this component:

1npm install motion clsx tailwind-merge

Installation

Run the following command in your terminal to add the component to your project:

1npx rankflow-ui@latest add expandable-cards

Props Reference

PropTypeDefaultDescription
cardsCard[]DEFAULT_CARDSArray of card objects with id, title, image, and description.
classNamestring''Additional CSS classes for the container.