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

# Dimple Switch

> Tactile switch with a dimpled knob, metallic track, and amber on-state fill. Hidden checkbox drives the slide — controlled or uncontrolled.

## Install

```bash
npx motion-ui-skill add dimple-switch
```

## Dependencies

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

## Usage

```tsx
"use client";

import { DimpleSwitch } from "@/components/buttons/dimple-switch";

export function DimpleSwitchDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <DimpleSwitch />
    </div>
  );
}
```

## API Reference

### DimpleSwitch

| Prop | Type | Default | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| `className` | `string` | — | No | Additional CSS classes |

## Source Files

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