Introducing Aceternity UI Pro - 70+ premium component packs and templates to build amazing websites.
Logo

Moving Border

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

Open in

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

70+ templates and component blocks combined

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

Aceternity UI Pro Demo - Light Mode
A product by Aceternity
Building in public at @mannupaaji