> ## Documentation Index
> Fetch the complete documentation index at: https://npm-packages.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# From npm to your docs

> A real package import, bundled and served by the Mint CLI.

Each example imports a public npm package in a React snippet and renders it inside the documentation page.

## Packages

| Package | npm | Examples |
| - | - | - |
| Paper Shaders | [@paper-design/shaders-react](https://www.npmjs.com/package/@paper-design/shaders-react) | [Shaders](https://npm-packages.mintlify.site/paper-shaders/mesh-gradient.md) |
| Base UI | [@base-ui/react](https://www.npmjs.com/package/@base-ui/react) | [Components](https://npm-packages.mintlify.site/base-ui/dialog.md) |
| Tiptap | [@tiptap/react](https://www.npmjs.com/package/@tiptap/react) | [Document editor](https://npm-packages.mintlify.site/tiptap/editor.md) |
| Recharts | [recharts](https://www.npmjs.com/package/recharts) | [Charts](https://npm-packages.mintlify.site/recharts/area-chart.md) |
| React Flow | [@xyflow/react](https://www.npmjs.com/package/@xyflow/react) | [Workflows](https://npm-packages.mintlify.site/react-flow/workflow.md) |
| Motion | [motion](https://www.npmjs.com/package/motion) | [Animation](https://npm-packages.mintlify.site/motion/springs.md) |

## Add a package

Paper Shaders is one example of the same import flow.

**1. Install the package**

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
pnpm add --save-exact @paper-design/shaders-react@0.0.81 react@19.2.3 react-dom@19.2.3
```

**2. Enable package imports**

Add `"packages": {}` to `docs.json`. Keep `package.json` and the lockfile alongside it.

**3. Import a component in a snippet**

```jsx theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { MeshGradient } from '@paper-design/shaders-react';

export function Example() {
  return <MeshGradient width="100%" height={420} colors={['#5100ff', '#00ff80', '#ffcc00']} />;
}
```

**4. Start the local preview**

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
MINTLIFY_NATIVE_NPM_PACKAGES=1 mint dev --port 3344
```

[Open Mesh Gradient](https://npm-packages.mintlify.site/paper-shaders/mesh-gradient.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.