Component docs
Loading
import { TerminalWindow } from "@pixxl-tools/components";
// In Server Components:
import { TerminalWindow } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
title (required) | ReactNode | — | Title (any content). |
actions | ReactNode | — | Action slot (buttons or links). |
titlerequiredReactNode
Title (any content).
actionsReactNode
Action slot (buttons or links).
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
pnpm add @pixxl-tools/components
const command = "pnpm add @pixxl-tools/components";
<TerminalWindow title="Terminal" actions={<ClipboardButton value={command} />}>{command}</TerminalWindow>