Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Add pre-requisites to Next integration docs #4473

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/data/toolpad/core/integrations/nextjs-approuter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ title: Next.js - Integration

<p class="description">This guide walks you through adding Toolpad Core to an existing Next.js app.</p>

## Prerequisites

Ensure that you have `@mui/material` and `next` installed. You also need the following to make the integration work correctly:

<codeblock storageKey="package-manager">

```bash npm
npm install @mui/material-nextjs @emotion/cache
```

```bash pnpm
pnpm add @mui/material-nextjs @emotion/cache
```

```bash yarn
yarn add install @mui/material-nextjs @emotion/cache
```

</codeblock>

## Wrap your application with `AppProvider`

In your root layout file (for example, `app/layout.tsx`), wrap your application with the `AppProvider`:
Expand Down
20 changes: 20 additions & 0 deletions docs/data/toolpad/core/integrations/nextjs-pagesrouter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ title: Next.js - Integration

<p class="description">This guide walks you through adding Toolpad Core to an existing Next.js app.</p>

## Prerequisites

Ensure that you have `@mui/material` and `next` installed. You also need the following to make the integration work correctly:

<codeblock storageKey="package-manager">

```bash npm
npm install @mui/material-nextjs @emotion/cache
```

```bash pnpm
pnpm add @mui/material-nextjs @emotion/cache
```

```bash yarn
yarn add install @mui/material-nextjs @emotion/cache
```

</codeblock>

## Wrap your application with `AppProvider`

In your root layout file (for example, `pages/_app.tsx`), wrap your application with the `AppProvider`:
Expand Down
Loading