Skip to content
Menu

Buttons

Scroll cue pill

Scroll cue pill: A tall capsule holding a long thin arrow that drifts on a loop, grows under the pointer and collapses once used.

Using Scroll cue pill

Scroll cue pill 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
accentcolor#9BE15DNo additional limit in the metadata.
directionselectdownOptions: down, up
heightnumber82From 48 to 140; step 2
driftDistancenumber6From 0 to 16; step 1
loopbooleantrueNo additional limit in the metadata.
Which frameworks are available for Scroll cue pill?

Scroll cue pill 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 Scroll cue pill depend on?

The React metadata lists these npm dependencies beyond React: motion.

What accessibility details are visible in Scroll cue pill?

The React source for Scroll cue pill includes: attributes and handlers (aria-hidden, aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Scroll cue pill handle reduced motion?

Scroll cue pill reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: collapseMs: reduced ? 220 : 460; scale: collapsing && !reduced ? 0 : hovered ? 1.14 : 1. 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