🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-masked-mui-textfield

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-masked-mui-textfield

Component that implements TextField + IMaskInput

1.0.8
latest
Source
npm
Version published
Maintainers
0
Created
Source

react-masked-mui-textfield

Component that implements TextField + IMaskInput

Demo

https://antoniolago.github.io/react-masked-mui-textfield/

Usage

Install it by running npm install react-masked-mui-textfield --save or yarn add react-masked-mui-textfield. Then:

import MaskedTextField from 'react-masked-mui-textfield';

//Use props you would usually use on mui's TextField and IMaskInput
//Example:
<div>
    <h4 className="bold mb-2">Mobile Telephone (Brasil)<span style={{ color: "var(--danger)" }}> *</span></h4>
    <MaskedTextField
        name="Telephone"
        size="small"
        placeholder="(00) 0 0000-0000"
        mask="(00) 0 0000-0000"
        value={telephone}
        onChange={(e: any) => setTelephone(e.target.value)}
        error={erroTelephone != ""}
        style={{ width: '100%' }}
        variant="outlined" />
    <br />
    <FormHelperText error>
        {erroTelephone}
    </FormHelperText>
</div>

Keywords

textfield

FAQs

Package last updated on 26 Aug 2024

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