About
A metallic toggle button with a light-catching bevel that turns to face the pointer and flips when pressed, with a status LED that lights on connect.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Machined Bevel Button to your project and fits it to your theme.
Code
How Machined Bevel Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { MachinedBevelButton } from "@/components/ui/machined-bevel-button";
export default function Demo({ variant = "paper" }: { variant?: string }) {
const night = variant === "night";
return (
<div
className={`flex min-h-full w-full items-center justify-center p-8 ${night ? "bg-[#14161a]" : "bg-[#dfe2e6]"}`}
>
<div className="flex flex-col items-center gap-4 text-center">
<p
className={`font-mono text-[0.6875rem] uppercase tracking-[0.16em] ${night ? "text-[#8b9099]" : "text-[#5d636c]"}`}
>
Vitrine Field Kit · Sensor 04 · Sohar Port
</p>
<MachinedBevelButton
theme={night ? "night" : "paper"}
label="Connect device"
doneLabel="Connected · 38 ms"
/>
</div>
</div>
);
}
















