It’s a lightweight input component for securely masking sensitive data, fully styled with Tailwind CSS and compatible with React Hook Form for validation.
- 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
Check out the live demo here: React Secret Input Demo
To install the package, run:
npm install @arisevan/react-secret-inputimport 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)}
/>
)
}