RetroToggleGroup

A group of toggle buttons with Mac OS 9 bevel in single or multiple selection modes.

Installation

npx shadcn@latest add "https://nostalgia-ui.com/r/retro-toggle-group.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. Put @layer ui-sdk; above @import "tailwindcss" in your global CSS (why).

Import

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

Single Select (Alignment)

Selected: left

Multi Select (Text Formatting)

Active: bold

Size Comparison

sm
default
lg

Disabled

Click items to toggle, or Tab in and use the arrow keys. In single mode one pushed-in slab slides to the button you choose; multiple mode lets each button push in on its own.