About
A reusable flip button component that dynamically switches between two customizable texts with a smooth rotation animation.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds FlipButton to your project and fits it to your theme.
Code
How FlipButton is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { FlipButton } from "@/components/ui/flip-button"
export function FlipButtonDemo() {
return <FlipButton text1="Cancel" text2="Submit" />;
}
















