Skip to content
Menu

Buttons

Follow count swipe

Follow count swipe: An outlined follow pill whose round accent badge slides to the far end on hover, painting a band that uncovers the follower count; clicking commits the follow with a stamp and bumps the count.

Using Follow count swipe

Follow count swipe 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
labeltextFollowUp to 20 characters
followedLabeltextFollowingUp to 20 characters
countnumber1243From 0 to 999999; step 1
accentcolor#38BDF8No additional limit in the metadata.
slideMsnumber500From 200 to 1000; step 25
Which frameworks are available for Follow count swipe?

Follow count swipe 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 Follow count swipe depend on?

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

What accessibility details are visible in Follow count swipe?

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

How does Follow count swipe handle reduced motion?

Follow count swipe reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: dur: reduced ? 0 : (leaving ? slideMs * LEAVE_SCALE : slideMs) / 1000; opacity: reduced && phase !== "rest" ? 0 : 1; reduced ? { duration: 0.22 } : { duration: 0 }. 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