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-buttonComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxmotionreacttailwind-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
clsxmotionreacttailwind-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 |