Skip to content

Commit

Permalink
Merge pull request #126 from Victor1890/next-integration-docs
Browse files Browse the repository at this point in the history
docs: 📝 add Next.js integration instructions
  • Loading branch information
viclafouch authored Feb 13, 2024
2 parents 0706eeb + 40376b7 commit 582bec3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ yarn add mui-tel-input

We have completed installing the package.

## Next.js integration

Learn how to use MUI tel input with Next.js

Once you have installed MUI tel input in your next.js project, it is important to transpile this package so that it is compatible with the project, both in development and production.

```js
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: [
'mui-tel-input',
],
// your config
}

module.exports = nextConfig
```

## Simple usage

Here is a simple usage for using the component:
Expand Down

0 comments on commit 582bec3

Please sign in to comment.