Basic fields
Password
Mask a string input while keeping validation in the schema.
Use z.string() with type: "password" in fieldConfig to mask the displayed characters. The stored value remains a string. Define length or other requirements in Zod; Erlangform does not encrypt or persist passwords.
Usage
Use your form instance from useForm. See the initial setup.
const schema = z.object({ password: z.string() });
<ErlForm
form={form}
schema={schema}
fieldConfig={{
password: { type: "password" },
}}
/>For additional input attributes, use a custom component.