Moving Border

A border that moves around the container. Perfect for making your buttons stand out.

Installation

Run the following command

npx shadcn@latest add @aceternity/moving-border

Props

PropTypeDescription
borderRadiusstringOptional. Defines the border radius of the button. Default value is "1.75rem".
childrenReact.ReactNodeRequired. The content to be displayed inside the button.
as anyOptional. Defines the HTML element or React component that will be used for the button. Default is "button".
containerClassName stringOptional. Additional CSS classes to be applied to the button container.
borderClassNamestringOptional. Additional CSS classes to be applied to the button border.
durationnumberOptional. Duration for the moving border animation in milliseconds. Default is 2000.
className stringOptional. Additional CSS classes to be applied to the button.
[key: string]anyOptional. Any other props that should be passed to the button.

Build websites faster and 10x better than your competitors with

Aceternity UI Pro

Next.js 15, Tailwind CSS v4 and Motion for react powered templates

200+ templates and blocks combined

Ready to copy paste component blocks, save days of development time

Aceternity UI Pro Demo - Light Mode

Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

A product by Aceternity
Building in public at @mannupaaji

© 2026 Aceternity Labs LLC. All Rights Reserved.