10% off on all-access. Use code SUPER10.
    d :
    h :
    m :
    Logo

    Hover Border Gradient

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

    Installation

    Run the following command

    npx shadcn@latest add @aceternity/hover-border-gradient

    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

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

    100+ templates and blocks combined

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

    Aceternity UI Pro Demo - Light Mode
    Logo
    Aceternity UI

    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.