# PasswordField

A revealable secret with explicit visibility feedback.

- Family: Forms, imported from `mizu-ui` or `mizu-ui/forms`
- Docs: https://mizu.user64bit.world/components/password-field
- Source: https://github.com/0xuser64bit/mizu/blob/main/packages/mizu/src/forms/Fields.tsx

## Usage

```tsx
import { PasswordField } from "mizu-ui";

export function Example() {
  return (
    <PasswordField
      label="Password"
      name="password"
      autoComplete="new-password"
    />
  );
}
```

## Copy it with the shadcn CLI

```sh
npx shadcn@latest init 0xuser64bit/mizu/preset # once, where there is no components.json
npx shadcn@latest add 0xuser64bit/mizu/password-field
```

## Props

- `label`: `string`. Accessible label.
- `...input`: `InputHTMLAttributes`. Native value, autocomplete and ref.

## Accessibility

The reveal button reports aria-pressed and keeps its name synchronized. Does not copy or store secrets.

## Motion

CSS transitions explain state changes. Reduced motion removes travel.
