mui-tel-input 5.1.2 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,6 +45,23 @@ const MyComponent = () => {
45
45
  return <MuiTelInput value={value} onChange={handleChange} />
46
46
  }
47
47
  ```
48
+
49
+ ## Next.js integration
50
+
51
+ Learn how to use MUI Tel Input with [Next.js](https://nextjs.org/).
52
+
53
+ Once you have installed `MUI Tel Input` in your next.js project, it is important to transpile it as it is an ESM package first.
54
+
55
+ ```js
56
+ /** @type {import('next').NextConfig} */
57
+ const nextConfig = {
58
+ transpilePackages: ['mui-tel-input'],
59
+ // your config
60
+ }
61
+
62
+ module.exports = nextConfig
63
+ ```
64
+
48
65
  ## [Documentation](https://viclafouch.github.io/mui-tel-input/)
49
66
 
50
67
  ## Changelog