Docs
→Button
→Gooey Button
Gooey Button
Delete button with gooey close effect and confirm state.
by Sarthak Kapila
Installation
Usage
Gooey Button Example
1import GooeyButton from "@/components/goey-button";23export default function Example() {4 return <GooeyButton />5}
Understanding the component
The button transitions from a primary "Delete" state to a "Confirm" state. A circular close button uses an SVG filter to apply a gooey effect when overlapping the main button.
Props
Prop | Type | Default | Description |
---|---|---|---|
onDelete | () => void | - | Called when the confirm action is clicked. |
onCancel | () => void | - | Called when the close action is clicked. |