Coming Soon: The Design & Development StudioVisit zarasana.com

Hold-to-Confirm

A destructive action button that requires a specific "hold" duration to trigger. This replaces annoying "Are you sure?" confirmation modals with a more physical, deliberate interaction.

Usage

Each variant is installed as a separate component to keep your bundle size small. Choose the style that matches your design system.

Neo-SaaS Style

Clean, danger-red button with a smooth fill animation.

Installation

Legacy installation using the full registry URL:

pnpm dlx shadcn@latest add "https://ui.zarasana.com/r/hold-to-confirm-neo-saas.json"

Neo-Brutal Style

High-stakes, arcade-style button with a liquid fill and textured overlay.

Installation

Legacy installation using the full registry URL:

pnpm dlx shadcn@latest add "https://ui.zarasana.com/r/hold-to-confirm-neo-brutal.json"

Glassomorphic Style

Futuristic, "unlock" style interaction with glowing progress and blur effects.

Long Press to Unlock

Installation

Legacy installation using the full registry URL:

pnpm dlx shadcn@latest add "https://ui.zarasana.com/r/hold-to-confirm-glassomorphic.json"

API Reference

Props

PropTypeDefaultDescription
onConfirm() => void-Callback function trigger upon successful completion of the hold action.
durationnumber1500 / 2000The duration in milliseconds required to confirm the action.
classNamestring-Additional CSS classes for the container.
initialTextstring(Variant dependent)Text displayed in the idle state.
confirmedTextstring(Variant dependent)Text displayed after confirmation.
holdingTextstring(Variant dependent)Text displayed while holding (Neo-SaaS / Neo-Brutal only).

© 2026 Zarasana UI. All rights reserved.