Doubt Button

Doubt Button: Escalating-confirmation button that prompts the user through comical guilt-tripping steps before firing. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Doubt Button

npx motion-ui-skill add doubt-button

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Doubt Button

Escalating-confirmation button that prompts the user through comical guilt-tripping steps before firing.

Install

npx motion-ui-skill add doubt-button

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { DoubtButton } from "@/components/buttons/doubt-button";

export function DoubtButtonDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <DoubtButton>Click Me</DoubtButton>
    </div>
  );
}

API Reference

DoubtButton

Prop Type Default Required Description
onConfirmed () => void — No Callback invoked once final doubt prompt is accepted
className string — No Additional CSS classes

Browse this category