Home/Components/PasswordInput

PasswordInput Component

Secure password input with visibility toggle control to help users securely enter passwords.

Form Control

Live Preview

Usage

import { PasswordInput } from '@featherstudio/react-daisyui-kit';
import { useState } from 'react';

export default function App() {
  const [password, setPassword] = useState('');

  return (
    <PasswordInput
      value={password}
      onChange={(value) => setPassword(value as string)}
      placeholder="Enter password"
    />
  );
}

Features

Visibility Toggle

Easy toggle button to show/hide password.

Secure by Default

Password is masked initially for security.

User Friendly

Toggle helps users verify their input easily.

Customizable Icons

Use custom icons for visibility controls.

Props

PropTypeDefaultDescription
valuestring-Password value
onChangefunction-Change handler
placeholderstring-Placeholder text
showPasswordTogglebooleantrueShow visibility toggle
disabledbooleanfalseDisable input
Back to Components