AsterUIDocsv1.0.2

Docs / Component reference

PasswordInput

Enter a password and reveal it when checking for a typo. The optional meter gives an estimate as you type.

Password input example

Install

sh
npx @fierst/ui@1.0.2 add password-input

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/password-input: PasswordInput.

Download the registry source for password-input 1.0.2.

API contracts

ts
export function* PasswordInput(
  props: {
    id?: string;
    label?: string;
    value?: string;
    defaultValue?: string;
    placeholder?: string;
    showStrength?: boolean;
    error?: string | null;
    onChange?: (val: string) => void;
    class?: string;
  },
  ctx: Ctx,
)