ArdoPackageManagers
On this page
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
| Name | Type | Required | Description |
|---|---|---|---|
pkg | string | Yes | Package name, or several names separated by spaces. |
dev | boolean | No | Install as a development dependency. Only applies to add. |
type | "add" | "exec" | No | add installs the packages (default). exec runs them once with the package runner. |
args | string | No | Extra 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" />