# Follow count swipe

https://fieldbook.lizardi.mx/components/follow-count-swipe-button

Category: Buttons
![Still of the Follow count swipe component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/follow-count-swipe-button.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/follow-count-swipe-button-815e37ce18.mp4 (5 s, silent)

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.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

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

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| label | text | Follow | Up to 20 characters |
| followedLabel | text | Following | Up to 20 characters |
| count | number | 1243 | From 0 to 999999; step 1 |
| accent | color | #38BDF8 | No additional limit in the metadata. |
| slideMs | number | 500 | From 200 to 1000; step 25 |

## Usage notes

Follow count swipe uses the inline preview frame with a light/dark theme setting.

### 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 &amp;&amp; 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.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "follow-count-swipe-button",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Travelling knob follow button](https://fieldbook.lizardi.mx/components/travelling-knob-follow-button)
- [Counting follow chip](https://fieldbook.lizardi.mx/components/counting-follow-chip)
- [Captioned Like Button](https://fieldbook.lizardi.mx/components/captioned-like-button)
- [Collapsing share button](https://fieldbook.lizardi.mx/components/collapsing-share-button)
- [Ringing bell badge](https://fieldbook.lizardi.mx/components/ringing-bell-badge)
- [Share row lift](https://fieldbook.lizardi.mx/components/share-row-lift-button)
