RetroToggle

A pressable toggle button with Mac OS 9 raised and pressed bevel states.

Installation

npx shadcn@latest add "https://nostalgia-ui.com/r/retro-toggle.json"

Setup: installing any component also installs nostalgia-theme (the --os9-* tokens and os9-* utilities) via registryDependencies. To add the theme on its own: npx shadcn@latest add https://nostalgia-ui.com/r/nostalgia-theme.json

Import

import { RetroToggle } from "@/components/ui/retro-toggle"

States

Interactive

Bold: off / Italic: on

Size Comparison

Disabled

Click toggles to switch between pressed and unpressed states.