1.0.14 • Published 2 years ago

input-field-mask v1.0.14

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Masks the input field strings with stars, even can't see by inspecting dom and change input type from password to text.

get value by using callback function called "getVal"

Install

npm i input-field-mask

Example:


import React from "react";

import InputFieldMask from "input-field-mask";

function App() {

  const [inVal, setInVal] = React.useState("");
  
  return (
    <div className="App">
      <InputFieldMask getVal={(val)=>setInVal(val)}/>
    </div>
  );
}

export default App;

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago