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-buttonComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxmotionreacttailwind-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
clsxmotionreacttailwind-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 |