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 https://ui.aceternity.com/registry/moving-border.json

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

With the best in class components and templates, stand out from the crowd and get more attention to your website. Trusted by founders and entrepreneurs from all over the world.

Go Pro
Manu is the man! He is the best front-end developer I have worked with. He took the requirements and quite literally ran with them. We are super happy with the result and product we go...

John Shahawy

Founder at Rogue and Moonbeam

A product by Aceternity
Building in public at @mannupaaji