Skip to content
Install command, light
Light
Install command, dark
Dark

Every state

  • Install command, default, light
    Install command, default, dark

    default

  • Install command, pnpm, light
    Install command, pnpm, dark

    pnpm

  • Install command, copied, light
    Install command, copied, dark

    copied

  • Install command, focus, light
    Install command, focus, dark

    focus

  • Install command, run-once, light
    Install command, run-once, dark

    run-once

Props

PropTypeDefaultWhat it does
packagesstring–The packages or binary, e.g. "@quernly/cli"
mode"add" | "dlx"–Install packages, or run a one-off binary (npx, pnpm dlx, yarn dlx, bunx)
devboolean–Add -D for a dev dependency
managersPackageManager[]–The tabs, in order
defaultManagerPackageManager–The tab open first, server HTML included
onManagerChange(manager) => void–Called when the reader picks another manager
labelstring–Accessible name of the tab list
copyLabelstring–Copy button name
copiedLabelstring–Shown after copying

Used in

A block built with code-03; installing one installs it too

More code

All 6

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans