Make your AI a shadcn expert

Long Press Button

Button that requires a press-and-hold gesture to confirm, with a progress fill that animates while held for React, Next.js, shadcn/ui, Tailwind CSS, TypeScript. Built on the base-ui shadcn Button.

Long Press Button preview

Scroll to load preview

Deliberate confirmation, not accidental. This button only fires when you press and hold for a full second, with a fill bar showing your progress. Let go early and nothing happens. It's the right pattern for actions you can't undo — delete, format, wipe — where a one-tap mistake costs real time. The hold time feels intentional without being annoying. Works on mouse, touch, and keyboard. Built on top of the shadcn Button so every variant and size you already use just works.

Install with AI

If you've connected the shadcn.io MCP server to Claude Code, Cursor, Windsurf, or any MCP-ready AI editor, prompt your agent to install this button for you — no copy-paste, no CLI:

use shadcnio to install the long-press-button button into my project

FAQ

Last updated on May 25, 2026

Was this page helpful?

Sign in to leave feedback.