npm i react-flipme
import { FlipCard } from "react-flipme"
<FlipCard>
<FlipCard.Front>
Front {/* Any component or element */}
</FlipCard.Front>
<FlipCard.Back>
Back {/* Any component or element */}
</FlipCard.Back>
</FlipCard>
React-flipme has following customizable properties:
style
- any css styles you wantvariant
- "light" | "dark"size
- "xs" | "s" | "m" | "l" | "xl" ("m" by default)rounded
- booleanflipped
* - booleanwidth
- stringheight
- string
*if "flipped" prop is provided, the control of the card will be automatically switched to the manual mode. It will disable its default behaivior (flip on hover will become unavailable)