Animated CTA Buttons

New

Expressive call-to-action buttons with expanding, hold, and slide interactions.

Updated

Expanding Arrow Button

expanding-arrow-button.tsx

An accent tile that expands into a dotted-arrow trail on hover or focus.

Hold Action Button

hold-action-button.tsx

Hold to complete with a vertical or horizontal liquid fill; release early to cancel.

Release early to cancel

Install

$ bunx --bun shadcn add @beui/hold-action-button

Slide Action Button

slide-action-button.tsx

Drag the thumb to the end to confirm an action; release early to spring back.

Drag the arrow to the end

Install

$ bunx --bun shadcn add @beui/slide-action-button

API Reference

completeLabel?
any
Complete
threshold?
number
0.82
resetDelay?
number
1200
onComplete?
(() => void)
thumbClassName?
string
fillClassName?
string

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.