@arisevan/react-secret-input
v1.0.3
Published
A React masked input component
Maintainers
Readme
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-inputUsage
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)}
/>
)
}