LN

FlipButton

Buttons 310

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" />;
}

Dependencies

More by LN

View all
  • Pricing Interaction

    Pricing Interaction

    1.5K
  • Dorpdown Navigation

    Dorpdown Navigation

    1.4K
  • Visualize Booking

    Visualize Booking

    667
  • Assisted Password Confirmation

    Assisted Password Confirmation

    615
  • Tags Selector

    Tags Selector

    596
  • Mega Menu

    Mega Menu

    414
  • Feedback Slider

    Feedback Slider

    341
  • Dynamic Action

    Dynamic Action

    253

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113