Skip to Content
šŸŽ‰Introducing Pumki UI

Flip Button

A button that flips between two states with an accompanying animation.

Pumki UIPumki UI

Installation

Usage


1import { FlipButton } from '@/components/pumki-ui/buttons/flip';

1<FlipButton frontText="Hello Pumki!" backText="Love you Pumki" />

Example

Flip Button from Right

Use the `from` prop to specify the direction of the flip animation.

Pumki UIPumki UI

Props

PropTypeDefaultDescription
from?stringtopDirection of flip animation
backClassName?string-Class for back side
frontClassName?string-Class for front side
className?string-Class for root element
transition?Transition{ type: "spring", stiffness: 280, damping: 20 }Animation config
backTextstring-Text for back side
frontTextstring-Text for front side
Last updated on