PasswordInput
A password input field with a toggle button to show or hide the password text.
Install Dependencies
npx quickcode-ui add PasswordInputExample
Default Example
Props
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Additional CSS classes for the input element |
placeholder | string | — | Placeholder text for the input |
disabled | boolean | false | Whether the input is disabled |
value | string | — | Controlled input value |
onChange | (e: React.ChangeEvent<HTMLInputElement>) => void | — | Change event handler |
id | string | — | HTML id attribute for label association |
| …props | InputProps | — | All other native input props except type |
Last updated on