Skip to content
LyEve UI v0.60.1

Form controls

PasswordInput

A secret field with a reveal toggle. Everything else matches Input: the same border, the same focus ring, the same hint and error treatment. The toggle is a real type="button", so clicking it inside a login form reveals the value instead of submitting the form.

Basic

At least 12 characters.

The field above is prefilled. Click the eye to reveal it, and click it again to hide it. Clearing the field hides it too, so a value the user deletes cannot stay legible on screen.

Never revealable

Pass revealable={false} for a value that must not be shown, for instance on a screen someone is sharing. A disabled field drops the toggle for the same reason.

Shown once, at creation. Store it somewhere safe.

Error state

Both passwords must match.

API

PropTypeDefaultDescription
value string''Bindable field value.
label string no defaultLabel rendered above the control.
labelHidden booleanfalseKeep the label for screen readers only, for a secret in a table cell.
hint string no defaultHelper text below the control. An error replaces it.
error string no defaultError message. Reddens the border.
placeholder string''Native placeholder.
revealable booleantrueShow the reveal toggle. False for a value that must never be displayed.
autocomplete 'new-password' | 'current-password' | 'off''new-password'What a password manager should offer.
disabled booleanfalseDisable the field. Also drops the toggle.
readonly booleanfalseRender the value without accepting edits.
required booleanfalseMark as required for form validation. Renders a red asterisk.
id string no defaultDOM id of the input. Generated when omitted.
name string no defaultNative form name.
class string no defaultExtra classes on the field wrapper.
controlClass string no defaultExtra classes on the input itself.
oninput (e: Event) => void no defaultFires on every keystroke, after the bound value updates.
onchange (e: Event) => void no defaultNative change event.
noAI booleanfalseKeep the value from an assistant: a FormAssist never reports it or fills it, and the control is marked data-no-ai for a browser agent.