Package Install

Generate code blocks for installing packages

Usage

Add the plugin to remarkPlugins.

import { remarkInstall } from 'fumadocs-core/mdx-plugins'

const config = {
    remarkPlugins: [
      [remarkInstall, { ... }]
    ],
}

Create code blocks with package-install as language.

```package-install
my-package
```

The following structure should be generated by the plugin. Please define and import the components into the MDX document.

<Tabs items={['npm', 'pnpm', 'yarn']}>
  <Tab value="npm">...</Tab>
  <Tab value="pnpm">...</Tab>
  <Tab value="yarn">...</Tab>
<Tabs>
npm install my-package

Last updated on