Socket
Book a DemoInstallSign in
Socket

mui-outlined-phone-input

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mui-outlined-phone-input

A phone number input component for React mimicking the MUI outlined input

1.0.27
latest
Source
npmnpm
Version published
Weekly downloads
66
135.71%
Maintainers
1
Weekly downloads
 
Created
Source

Npm Version Downloads License

mui-outlined-phone-input

  • Phone number input for React with corresponding country picker
  • Styled to match @mui-material outlined textfield

Table of Contents

Install

npm install mui-outlined-phone-input
yarn add mui-outlined-phone-input

Example

import { Input as PhoneInput } from 'mui-outlined-phone-input';
import { useState } from 'react';

const Form = () => {
  const [phone, setPhone] = useState('+15045555555');

  return (
    <div>
      <PhoneInput
        value={phone ?? ''}
        onChange={(e: { target: { value: string } }) => setPhone(e?.target?.value ?? '')}
      />
    </div>
  )
}

Props

NameTypeDefaultDescription
valuestring''The initial and or current value
onChangefunction() => {}A function to update inputs value
labelstring'Phone number'(optional) The inputs label
palceholderstring'(504) 555-5555'(optional) The inputs placeholder
errorbooleanfalse(optional) Whether or not to show the input in error state
helperTextstring''(optional) Inputs helperText
classNamestring''(optional) Classes to apply to the input
wrapperClassNamestring''(optional) Classes to apply to the inputs wrapper
disabledbooleanfalse(optional) Whether or not to disabled the input

Keywords

react

FAQs

Package last updated on 06 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.