Components
Loading preview...
Pixel-art toggle group from 8bitcn.com — single or multiple selection with retro pixel borders on each item.
npx shadcn@latest add https://21st.dev/r/theorcdev/8bit-toggle-group"use client";
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/8bit-toggle-group";
export default function Default() {
return (
<div className="flex w-full min-h-screen items-center justify-center bg-background p-8 overflow-hidden">
<ToggleGroup type="single" defaultValue="b" className="font-pixel">
<ToggleGroupItem value="b">B</ToggleGroupItem>
<ToggleGroupItem value="i" className="italic">I</ToggleGroupItem>
<ToggleGroupItem value="u" className="underline">U</ToggleGroupItem>
</ToggleGroup>
</div>
);
}