Saltar al contenido
⌘K

ArdoPackageManagers

Ver como Markdown
En esta página
Esta referencia de la API se genera a partir de los comentarios de TypeScript en inglés. Los nombres, las firmas y los ejemplos corresponden al paquete publicado.

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