Search Documentation

Search for components, guides, and more.

Command Tabs

Display tabbed CLI commands for different package managers.

Examples

Command Tabs Basics

Installation

pnpm dlx shadcn@latest add https://chatcn.me/c/command-block



Props

CommandBlock

PropTypeDefaultDescription
classNamestring-Additional CSS classes
childrenReact.ReactNode-Block content (header, content)

CommandBlockHeader

PropTypeDefaultDescription
childrenReact.ReactNode-Header content (title, etc.)

CommandBlockTitle

PropTypeDefaultDescription
childrenstring-Title text
showTerminalIconbooleantrueShow terminal icon

CommandBlockContent

PropTypeDefaultDescription
commandstring-Command text to display
classNamestring-Additional CSS classes

CommandBlocksTabs

PropTypeDefaultDescription
childrenReact.ReactNode-Tab header and content
defaultValuestring-Default active tab value

CommandBlockTabHeader

PropTypeDefaultDescription
childrenReact.ReactNode-Tab triggers
showTerminalIconbooleantrueShow terminal icon

CommandBlockTabTrigger

PropTypeDefaultDescription
valuestring-Unique tab identifier
labelstring-Tab button text

CommandBlockTabContent

PropTypeDefaultDescription
valuestring-Tab identifier (matches trigger)
commandstring-Command text to display