---
title: "Expanding Arrow Button"
description: "Free React call to action button: an accent tile expands into a dotted arrow trail on hover or keyboard focus. Framer Motion, Tailwind, shadcn install."
category: "Components"
parent: "https://beui.dev/components/motion/expanding-arrow-button"
publishedAt: "2026-07-16"
updatedAt: "2026-11-10"
documentation: "https://beui.dev/components/motion/expanding-arrow-button/expanding-arrow"
markdown: "https://beui.dev/components/motion/expanding-arrow-button/expanding-arrow.md"
license: "MIT"
---

# Expanding Arrow Button

> Free React call to action button: an accent tile expands into a dotted arrow trail on hover or keyboard focus. Framer Motion, Tailwind, shadcn install.

## Install

```bash
npx shadcn@latest add @beui/expanding-arrow-button
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

### Expanding Arrow Button usage

An accent tile that expands into a dotted-arrow trail on hover or focus.

```tsx
"use client";

import { ExpandingArrowButton } from "@/components/motion/expanding-arrow-button";

export function ExpandingArrowButtonPreview() {
  return (
    <div className="flex items-center justify-center">
      <ExpandingArrowButton>Book a demo</ExpandingArrowButton>
    </div>
  );
}
```

## API Reference

### ExpandingArrowButton

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `className` | `string` | — | No | Classes merged onto the root element. |
| `accentClassName` | `string` | — | No | Classes merged onto the chevron pill that widens on hover or focus. |
| `labelClassName` | `string` | — | No | Classes merged onto the label text. |

## More in Animated CTA Buttons

- [Hold Action Button](https://beui.dev/components/motion/expanding-arrow-button/hold-action.md)
- [Slide Action Button](https://beui.dev/components/motion/expanding-arrow-button/slide-action.md)

## Source

- Registry detail: https://beui.dev/r/expanding-arrow-button
- Raw source: https://beui.dev/r/expanding-arrow-button/raw
- GitHub: https://github.com/starc007/ui-components
