GitHub Stars
Docs
Flipping Card

Flipping Card

A two-sided card component that flips on hover, revealing content on its back face. Ideal for interactive displays or showcasing additional information.

Badtz-Maru

Badtz-Maru

Bad Badtz-Maru (バッドばつ丸, Baddo Batsu Maru), commonly named "Badtz-Maru" is a penguin with spiky hair.

Bad Badtz-Maru (バッドばつ丸, Baddo Batsu Maru), commonly named "Badtz-Maru", is a penguin with spiky hair, and one of the many characters of Sanrio.

Installation

pnpm dlx shadcn@latest add https://badtz-ui.com/r/flipping-card.json

Usage

import { FlippingCard } from "@/components/ui/flipping-card";
<FlippingCard frontContent={<div>Front Content</div>} backContent={<div>Back Content</div>} />

Props

flipping-card props.

PropTypeDescriptionDefault
classNamestringAdditional custom classes for the card container.-
heightnumberThe height of the card in pixels.300
widthnumberThe width of the card in pixels.350
frontContentReact.ReactNodeContent to display on the front face of the card.-
backContentReact.ReactNodeContent to display on the back face of the card.-
Previous
Next