PasswordInput
Password text field with a visibility toggle to reveal or obscure the entered value.
Examples
Basic
A simple password input field.
With Show/Hide Toggle
Toggle visibility of the password with a button.
With Strength Indicator
Shows password strength as you type.
Installation
pnpm add @rokle/components @rokle/tokensInstalls with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.
Usage
import { PasswordInput } from "@rokle/components";import { PasswordInput } from "@rokle/components";
export function Example() {
return <PasswordInput />;
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | - | Current password value. |
| onChange | (value: string) => void | - | Called when value changes. |
| placeholder | string | - | Placeholder text. |