Skip to content

Add HoldConfirmButton with circular progress ring#28

Merged
radiumcoders merged 7 commits into
mainfrom
add-hold-confirm-button
Jun 30, 2026
Merged

Add HoldConfirmButton with circular progress ring#28
radiumcoders merged 7 commits into
mainfrom
add-hold-confirm-button

Conversation

@radiumcoders

Copy link
Copy Markdown
Owner

Introduces a hold-to-confirm pill button that shrinks while pressed and draws a progress ring using Motion styleEffect and svgEffect. Includes docs, registry wiring, and homepage showcase.

Introduces a hold-to-confirm pill button that shrinks while pressed and draws a progress ring using Motion styleEffect and svgEffect. Includes docs, registry wiring, and homepage showcase.
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evil-buttons Ready Ready Preview, Comment Jun 30, 2026 5:05pm

Remove onConfirm handler from MDX preview. Server-rendered docs cannot pass event handlers to client components.
Default stroke is 12px with an SVG goo filter, spring-driven scale squash, and spring rewind. Docs and landing previews no longer wrap the button in a black box.
Fix idle full-circle artifact by initializing stroke-dasharray to zero, gating ring opacity on progress, hiding the SVG while idle, and removing the goo filter SourceGraphic blend.
Stop React from overriding Motion svgEffect by removing controlled opacity and stroke-dash attributes on the circle. Ring visibility is gated on the SVG wrapper state only.
Remove the SVG goo filter that blurred the thick stroke into a full ring on press. Ring opacity and pathLength now both track hold progress for a gradual arc.
Default ringSize is 280px with a tighter radius formula so the arc sits farther from the pill.
@radiumcoders radiumcoders merged commit aca79c9 into main Jun 30, 2026
1 of 3 checks passed
@radiumcoders radiumcoders deleted the add-hold-confirm-button branch July 1, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant