RetroSwitch

A toggle switch with Mac OS 9 beveled track and sliding thumb indicator.

Installation

npx shadcn@latest add "https://nostalgia-ui.com/r/retro-switch.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 { RetroSwitch } from "@/components/ui/retro-switch"

Off (Default)

On

Disabled

Click each switch to toggle between on and off states.