Aller au contenu
⌘K

ArdoPackageManagers

Voir en Markdown
Sur cette page
Cette référence API est générée à partir des commentaires TypeScript en anglais. Les noms, signatures et exemples correspondent au paquet publié.

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" />