Skip to content

eviannaive/react-secret-input

Repository files navigation

React Secret Input

It’s a lightweight input component for securely masking sensitive data, fully styled with Tailwind CSS and compatible with React Hook Form for validation.


Features

  • Fully styled with Tailwind CSS
  • Seamless integration with React Hook Form
  • Toggle visibility of input values (show/hide password)
  • Easy to use and customize
  • TypeScript ready
  • Lightweight and fast

Demo

Check out the live demo here: React Secret Input Demo


Installation

To install the package, run:

npm install @arisevan/react-secret-input

Usage

import SecretInput from "react-secret-input";

export default function Page() {
  const [value, setValue] = useState("");
  return (
    <SecretInput
      label="Full Name"
      defaultValue="Zola Hanna"
      onChange={(e) => setValue(e.target.value)}
    />
  )
}

About

This is my very first attempt at creating a **React component library**

Resources

Stars

Watchers

Forks

Packages

No packages published