Skip to content

PromptParams.isMasked?

PromptParams › isMasked?

Type: boolean

Whether the input masks what is typed, for a password, an API key or another secret.

A masked input is a password input with autocomplete turned off and spell-checking always off (PromptParams.spellcheckMode is ignored), so the value is never sent to a spell-checking service. A toggle button beside it shows and hides the value, so the user can check what was typed.