Docs
Resize Card
Resize Card
Use swapy to resize cards.
Loading...
Installation
Install the following dependencies:
npm install swapyInstall the shadcn/ui dependencies:
You need to install shadcn components, like this:
npx shadcn@latest add cardAPI Reference
Props
| Prop | Type | Description |
|---|---|---|
| animation | string | support "dynamic" | "spring" | "none"; |
Usage
export default function Swapy() {
return <SwapyComponent animation="dynamic" />;
}