About
Pixel-art toggle button from 8bitcn.com — pressed state with retro pixel border. Wraps shadcn/ui Toggle.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds 8-bit Toggle to your project and fits it to your theme.
Code
How 8-bit Toggle is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { Toggle } from "@/components/ui/8bit-toggle";
export default function Default() {
return (
<div className="flex w-full min-h-screen items-center justify-center bg-background p-8 overflow-hidden">
<div className="flex items-center gap-3">
<Toggle aria-label="Bold" className="font-pixel">B</Toggle>
<Toggle aria-label="Italic" defaultPressed className="font-pixel italic">I</Toggle>
<Toggle aria-label="Underline" className="font-pixel underline">U</Toggle>
</div>
</div>
);
}
















