Serafim

Flip Button

Buttons 7

About

Flip Button with Shadcn styles and theme. Inspired by @ln-dev7

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Flip Button to your project and fits it to your theme.

Code

How Flip Button is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Trash2, Mail, Archive, Star } from "lucide-react"
import { FlipButton } from "@/components/ui/flip-button"

function FlipButtonDemo() {
  return (
    <FlipButton 
      primaryText="Confirm"
      secondaryText="Cancel"
      onAction={() => console.log("Confirmed")}
    />
  )
}

function FlipButtonDestructive() {
  return (
    <FlipButton
      variant="destructive"
      primaryText="Delete"
      secondaryText="Cancel"
      onAction={() => console.log("Deleted")}
    />
  )
}

function FlipButtonSuccess() {
  return (
    <FlipButton
      variant="success"
      primaryText="Subscribe"
      secondaryText="Confirm"
      onAction={() => console.log("Subscribed")}
    />
  )
}

function FlipButtonWarning() {
  return (
    <FlipButton
      variant="warning"
      primaryText="Archive"
      secondaryText="Sure?"
      onAction={() => console.log("Archived")}
    />
  )
}

function FlipButtonSmall() {
  return (
    <FlipButton
      size="sm"
      primaryText="Small"
      secondaryText="Cancel"
    />
  )
}

function FlipButtonLarge() {
  return (
    <FlipButton
      size="lg"
      primaryText="Large"
      secondaryText="Cancel"
    />
  )
}

export default {
  FlipButtonDemo,
  FlipButtonDestructive,
  FlipButtonSuccess,
  FlipButtonWarning,
  FlipButtonSmall,
  FlipButtonLarge,
}

Dependencies

More by Serafim

View all
  • Spline Scene

    Spline Scene

    9.5K
  • Testimonials with Marquee

    Testimonials with Marquee

    2.3K
  • Gradient Button

    Gradient Button

    1.9K
  • Pixel Canvas

    Pixel Canvas

    900
  • Animated Blur Number

    Animated Blur Number

    830
  • Empty State

    Empty State

    775
  • Balloons

    Balloons

    755
  • Status Badge

    Status Badge

    646

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    32
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Split Button

    Split Button

    32