Tailwind UI Pattern Registry for humans and agents

code-preview install terminal cli dark tabs copy developer npm brew powershell install cli terminal dark tabs copy npm brew powershell curl developer install command block with OS tabs platform-specific install instructions terminal card CLI install block with macOS Linux Windows tabs

Code Preview Install Block

Fetch pattern JSON: curl https://webspire.de/patterns/code-preview/install-block.json

Details

Family
code-preview
Tier
enhanced
Kind
component
Extends
code-preview/language-switcher
Responsive Dark Mode Tailwind Only SSR Safe Copy & Paste
Stable Published
code-previewinstallterminalclidarktabscopydevelopernpmbrewpowershell

Slots

Name Required Description
tabs Yes OS tab labels (macOS, Linux, Windows, npm).
panels Yes Per-OS content with command lines and copy buttons.
footer No Version badge and release notes link.

Dark terminal card (ws-code-preview tokens, bg: #0f172a) with four CSS-only OS tabs via radio peer-checked. Each panel shows the platform-appropriate install command(s) with a copy icon button. macOS offers both Homebrew and curl; Linux shows a single shell script; Windows shows PowerShell irm | iex; npm shows all three package managers. Footer bar displays version + release notes link. Extend by adding a deb/rpm tab or a Docker panel as needed.