RetroCollapsible

A disclosure widget with Mac OS 9 triangle toggle for expanding and collapsing content.

Installation

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

Basic

Default Open

TCP/IP: Ethernet

IP Address: 192.168.1.42

AppleTalk: Active

Multiple Sections

Click the disclosure triangle to expand or collapse each section. The triangle turns in two frames, like the Finder's, and the content slides open.