Skip to content

Component 026Buttons

Hungry Delete

Two playful delete buttons swallow their letters into a hungry bin, then celebrate success or spit the word back out.

  • React
  • Tailwind CSS
  • TypeScript
Press either Delete button to see the success or failure sequence.
Loading preview…
Live interactive preview

Quick start

Make it yours.

Save hungry-delete.tsx in your components folder, then import it below. Requires React and Tailwind CSS.

TSXapp/page.tsx
import HungryDelete from "@/components/ui/hungry-delete";

export default function Example() {
  return <HungryDelete />;
}

Behind the interaction

The details that make it work.

Designed to explore, ready to adapt.

Letters with personality

Each letter jumps into the bin before the pill collapses into a loading circle.

Success and a second chance

The black button completes its action; the blue button demonstrates failure and recovery.

Ready for your action

Connect an asynchronous callback to your own action, with pending, success, and failure feedback.

Keep exploring

View all components