---
title: "Highlight Button | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/highlight-button"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/highlight-button.tsx"
install_command: "npx motion-ui-skill add highlight-button"
dependencies: ["clsx","motion","react","tailwind-merge"]
category: "craft"
subcategory: "buttons"
---

# Highlight Button

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

## Install

```bash
npx motion-ui-skill add highlight-button
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"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 |

## Source Files

- [components/buttons/highlight-button.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/highlight-button.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
