Docs
Resize Card

Resize Card

Use swapy to resize cards.

Section 1

This is section 1. You can move and resize it.

Section 2

This is section 2. You can move and resize it.

Section 3

This is section 3. You can move and resize it.

Installation

Install the following dependencies:

npm install swapy

Install the shadcn/ui dependencies:

You need to install shadcn components, like this:

npx shadcn@latest add card

API Reference

Props

PropTypeDescription
animationstringsupport "dynamic" | "spring" | "none";

Usage

export default function Swapy() {
  return <SwapyComponent animation="dynamic" />;
}