Skip to content
Menu

Buttons

Rocking icon CTA

Rocking icon CTA: A solid accent pill whose leading calendar icon rocks like a metronome on hover and, when clicked, draws a tick and swaps the wording to a confirmed label before settling back.

Using Rocking icon CTA

Rocking icon CTA uses the inline preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
labeltextAdd to calendarUp to 30 characters
confirmLabeltextAddedUp to 24 characters
accentcolor#FF6A1FNo additional limit in the metadata.
rockDegreesnumber10From 0 to 25; step 1
rockSecondsnumber1From 0.4 to 3; step 0.1
Which frameworks are available for Rocking icon CTA?

Rocking icon CTA is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Rocking icon CTA depend on?

The React metadata lists no additional npm dependencies beyond React.

What accessibility details are visible in Rocking icon CTA?

The React source for Rocking icon CTA includes: native elements (button); attributes and handlers (aria-hidden, aria-live). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Rocking icon CTA handle reduced motion?

Rocking icon CTA reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Preference-dependent expressions in index.tsx: reduced ? 0 : 380; reduced ? 400 : 2000. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components