# Password input

Password field with a show/hide toggle.

Import from `@a31labs/rax/password-input`.

## Usage

```tsx
<Field label="Password"><PasswordInput autoComplete="new-password" value={pw} onChange={(e) => setPw(e.target.value)} /></Field>
```

## Rules

Native input props. Input with a ghost IconButton at the right edge that toggles between hidden and shown ("Show password" / "Hide password"); the toggle is disabled with the input. `autoComplete` defaults to `current-password`, so sign-up forms pass `new-password`. `className` goes to the wrapper; `ref`, `id`, `aria-*` and other native props go to the input, so it works inside Field.

Page: https://rax.a31.at/components/password-input
