---
title: "Animated Chevron Icon"
description: "A chevron that turns with a small overshoot when its panel opens."
url: https://gelatinui.com/components/collapsible
markdown_url: https://gelatinui.com/components/animated-chevron-icon.md
access: free
install: "npx shadcn@latest add @gelatin-ui/animated-chevron-icon"
registry_item: https://gelatinui.com/r/animated-chevron-icon.json
version: "2026-11-08"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Chevron Icon

> A chevron that turns with a small overshoot when its panel opens.

Page: https://gelatinui.com/components/collapsible

## When to use it

Best for: The chevron of a trigger that opens and closes a panel, such as a Collapsible.

- Use it in the trigger of a panel that opens and closes, and pass the open state in `open`.
- Use `direction="end"` for a chevron that points to the end side: right, and left in right to left.

## When not to use it

- For a cross on a Close button, use the [Animated Close Icon](https://gelatinui.com/components/animated-close-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.
- `open` alone drives it: pass the open state of the panel, such as the render state of a Base UI part.
- A change in the middle of a turn goes on from the angle it has.

## Anatomy

```text
AnimatedChevronIcon
```

## API reference

### AnimatedChevronIcon

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `direction` | `"down" \| "end"` | "down" | `down` (default) for a panel that opens below, `end` for a row that opens rows under it. |
| `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. |
| `open` | `boolean` | false | Open: the chevron turns (down → up, end → down) on the `panelBounce` spring. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedChevronIcon | `animated-chevron-icon` | `data-open` |  | `motion-timing` |

## 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/animated-chevron-icon
```

It adds 9 registry items: 8 files, 2072 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
