Kinetic UI
Back to Introduction
Buttons

Shimmer Border Button

Continuous gradient border trace button with magnetic pull.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add shimmer-border-button
Shimmer Border Button

Installation

npx kinetic-ui-cli@latest add

Props

Adjust shimmer speed, gradient colors, and magnetic attraction strength.

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { ShimmerBorderButton } from "@/components/creative/shimmer-border-button";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { ShimmerBorderButton } from "@/components/creative/shimmer-border-button";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <ShimmerBorderButton
        shimmerColor="example"
      >
        <div>Content goes here</div>
      </ShimmerBorderButton>
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.