Chrome Button
Chrome Button: Metallic pill button whose border is a ring of flowing liquid chrome reflection around a solid face. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Chrome Button
npx motion-ui-skill add chrome-buttonComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxreacttailwind-merge
Source files
Chrome Button
Metallic pill button whose border is a ring of flowing liquid chrome reflection around a solid face.
Install
npx motion-ui-skill add chrome-button
Dependencies
clsxreacttailwind-merge
Usage
"use client";
import { ChromeButton } from "@/components/buttons/chrome-button";
export function ChromeButtonDemo() {
return (
<div className="flex items-center justify-center p-6">
<ChromeButton>Click Me</ChromeButton>
</div>
);
}
API Reference
ChromeButton
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
size |
`"default" | "compact" | "icon"` | "default" |
className |
string |
— | No | Additional CSS classes |
children |
React.ReactNode |
— | No | Button label content |