---
title: "Animated Follow Icon"
description: "A person with a plus for a Follow toggle. On follow the plus turns into a check and the head nods once."
url: https://gelatinui.com/components/animated-follow-icon
markdown_url: https://gelatinui.com/components/animated-follow-icon.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/animated-follow-icon"
version: "2026-11-21"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Follow Icon

> A person with a plus for a Follow toggle. On follow the plus turns into a check and the head nods once.

Page: https://gelatinui.com/components/animated-follow-icon

## When to use it

Best for: A Follow toggle: the plus turns into a check and the head nods when the person is followed.

- Use it in a Follow or Add contact toggle.
- Set `checked` from the following state. A change to `true` plays the swap and the nod.
- In a Social Action, pass it to `SocialActionIcon` as `render`, with a `SocialActionLabel`.

## When not to use it

- For a plus that opens or adds something, use the [Animated Plus Icon](https://gelatinui.com/components/animated-plus-icon.md).

## Notes for agents

- `variant` (`stroke`, `solid`, `duotone`, `twotone`, `bulk`) and `corners` (`round`, `sharp`) pick the style. Use one style for every icon of a product.
- `checked` is the following state. The default is `false`.
- The check draws in after the plus has turned out, so the two never cross.
- The icon is `aria-hidden`. Put `aria-pressed` and the name on the button.

## Anatomy

```text
AnimatedFollowIcon
```

## API reference

### AnimatedFollowIcon

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"bulk" \| "duotone" \| "solid" \| "stroke" \| "twotone"` |  | `stroke` (default): 1.5 strokes. `solid`: the body filled, inner details cut through. `duotone`: a 40% fill under the stroke. `twotone`: the details at 40%. `bulk`: the body filled at 40% with no outline, the details at full color. |
| `corners` | `"round" \| "sharp"` |  | `round` (default): round caps and joins, soft corners. `sharp`: square caps, miter joins. |
| `checked` | `boolean` | false | Following: the plus turns into a check and the head nods on each change to `true`. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedFollowIcon | `animated-follow-icon` |  |  |  |

## Usage

Set `checked` from the following state, and put `aria-pressed` on the button.

The sample also uses `toggle`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui-pro/animated-follow-icon @gelatin-ui/toggle
```

```tsx title="follow-button.tsx"
import { useState } from "react";

import { AnimatedFollowIcon } from "@/components/pro/icons/animated-follow-icon";
import { Toggle } from "@/components/ui/toggle";

export function FollowButton() {
  const [following, setFollowing] = useState(false);
  return (
    <Toggle aria-label="Follow" pressed={following} onPressedChange={setFollowing}>
      <AnimatedFollowIcon checked={following} />
    </Toggle>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/animated-follow-icon
```

It adds 10 registry items: 9 files, 2120 lines, and the npm packages `@base-ui/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Toggle](https://gelatinui.com/components/toggle.md)
- [Social Action](https://gelatinui.com/components/social-action.md)
- [Animated Plus Icon](https://gelatinui.com/components/animated-plus-icon.md)

## Accessibility

The icon is hidden from assistive tools. Put the name and `aria-pressed` on the button.

## Motion

| Part | Motion |
| --- | --- |
| Follow | panel · the plus shrinks and turns out, a check draws in, and the head nods |
| Unfollow | panel · the check fades and the plus grows back |
