laoyutong / react-secret-input

An input of type password implemented with React and TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-secret-input

An input of type password implemented with React and TypeScript

Install

yarn add react-secret-input

Usage

import React, { useState } from "react";
import ReactSecretInput from "react-secret-input";

function App() {
  const [value, setValue] = useState("");

  return (
    <div className="App">
      <h1>react-secret-input 🌰</h1>
      <h3>value:{value}</h3>
      <ReactSecretInput value={value} onChange={setValue} />
    </div>
  );
}

export default App;

Demo

react-secret-input

About

An input of type password implemented with React and TypeScript


Languages

Language:TypeScript 78.5%Language:JavaScript 15.3%Language:HTML 6.2%