Back to projects
Open SourceReactMUITypeScriptDocumentation

MUI-Tel-Input – Phone Number Input for Material UI

Published Jul 14, 2026

Component Demo

Overview

MUI-Tel-Input

A phone number input component designed for MUI (Material UI), built with libphonenumber-js for parsing and formatting. 208+ GitHub stars, MIT licensed.

MUI-Tel-Input Demo

Table of Contents

Overview

The Challenge

MUI-Tel-Input is an ESM package that didn't work correctly with Next.js out of the box. Users integrating the component into Next.js projects encountered compatibility issues because Next.js requires explicit transpilation of ESM packages.

My Contribution

What I Worked On

As a contributor, I identified and resolved the Next.js compatibility issue by:

  • Diagnosing the ESM compatibility problem — recognized that mui-tel-input as an ESM package wasn't being transpiled correctly by Next.js, causing runtime errors.
  • Documenting the solution — added a comprehensive "Next.js integration" section to the official documentation, explaining how to configure transpilePackages in next.config.js to ensure compatibility in both development and production.
  • Improving developer experience — provided clear, copy-pasteable code examples that developers can immediately use to integrate the component into their Next.js projects.

Built With

What I Learned

Contributing to MUI-Tel-Input taught me about ESM package compatibility issues in modern JavaScript ecosystems and how different frameworks handle module transpilation. I learned the importance of clear documentation for library adoption and how a well-written integration guide can significantly reduce friction for users.

Tools & technologies

ReactTypeScriptMUINext.jslibphonenumber-js

More projects

Let's build something

Have a project in mind? I'm open to freelance work and full-time roles.

Get in touch →