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

Hover Border Gradient

A hover effect that expands to the entire container with a gradient border.

Open in

Installation

Run the following command

npx shadcn@latest add https://ui.aceternity.com/registry/hover-border-gradient.json

Props

PropTypeDefaultDescription
childrenReact.ReactNode N/AThe content to be displayed inside the hover gradient component.
containerClassNamestring? undefinedAdditional CSS class for the container.
classNamestring? undefinedAdditional CSS class for the inner content.
asReact.ElementType? "button"The component type that will be used as the container.
durationnumber? 1Duration of the animation cycle in seconds.
clockwiseboolean? trueDetermines the direction of the gradient rotation.
...buttonPropsReact.HTMLAttributes<HTMLElement>N/AAdditional props to be spread over the container element.

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
I've been working with Manu for a couple of months now and I can't express enough how impressed I am with his talent. Manu's JavaScript/React web UI programming skills are through the roof. He's he...

Tony Pujals

Founder at Fantastic Realms, Tech Lead at Google

A product by Aceternity
Building in public at @mannupaaji