Highlight Button

Highlight Button: Button with an ambient continuous border highlight tracing its perimeter smoothly on hover. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Highlight Button

npx motion-ui-skill add highlight-button

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Highlight Button

Button with an ambient continuous border highlight tracing its perimeter smoothly on hover.

Install

npx motion-ui-skill add highlight-button

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { HighlightButton } from "@/components/buttons/highlight-button";

export function HighlightButtonDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <HighlightButton>Click Me</HighlightButton>
    </div>
  );
}

API Reference

HighlightButton

Prop Type Default Required Description
className string — No Additional CSS classes
children React.ReactNode — No Button label content

Browse this category