Slate Chip Switch
Slate Chip Switch: Smooth pill chip switch with a white thumb and sky on-state fill — a cleaner alternative to textured toggles. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Slate Chip Switch
npx motion-ui-skill add slate-chip-switchComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxreacttailwind-merge
Source files
Slate Chip Switch
Smooth pill chip switch with a white thumb and sky on-state fill — a cleaner alternative to textured toggles.
Install
npx motion-ui-skill add slate-chip-switch
Dependencies
clsxreacttailwind-merge
Usage
"use client";
import { SlateChipSwitch } from "@/components/buttons/slate-chip-switch";
export function SlateChipSwitchDemo() {
return (
<div className="flex items-center justify-center p-6">
<SlateChipSwitch />
</div>
);
}
API Reference
SlateChipSwitch
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |