Expanding Arrow Button

A call to action whose arrow tile stretches into a dotted trail on hover.

Preview

"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>
  );
}

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/expanding-arrow-button

API Reference

className?
string

Classes merged onto the root element.

Default—
accentClassName?
string

Classes merged onto the chevron pill that widens on hover or focus.

Default—
labelClassName?
string

Classes merged onto the label text.

Default—

More in Animated CTA Buttons

Updated