Zum Inhalt springen
⌘K

ArdoPackageManagers

Als Markdown ansehen
Auf dieser Seite
Diese API-Referenz wird aus den englischen TypeScript-Quellkommentaren erzeugt. Namen, Signaturen und Beispiele entsprechen dem veröffentlichten Paket.

Installs or runs a package with each supported package manager, shown as tabs.

Each tab is an ArdoCodeGroup entry, so the copy button and tab behavior match code groups. The commands render as plain text. Build-time highlighting only reaches literal code in Markdown fences and in TSX source, and these commands are computed from props at render time.

import { ArdoPackageManagers } from "ardo/ui"

<ArdoPackageManagers pkg={…} />

Props

NameTypeRequiredDescription
pkgstringYesPackage name, or several names separated by spaces.
devbooleanNoInstall as a development dependency. Only applies to add.
type"add" | "exec"Noadd installs the packages (default). exec runs them once with the package runner.
argsstringNoExtra arguments appended to the end of the command.

Props type: ArdoPackageManagersProps

Example

<PackageManagers pkg="ardo" />
<PackageManagers pkg="typescript" dev />
<PackageManagers pkg="create-ardo" type="exec" />