Skip to content
View Markdown

SecureField ​

A field that hides password characters.

tsx
import { SecureField } from '@satinhq/kit'

Example ​

Click the Password field and type. Try the system keyboard on a device.

Bind the text ​

Keep the text in React state. Pass the string to value and its setter to onChange.

Name the field ​

Use label for its accessible name. A prompt supplies placeholder text when the field is empty.

Choose password autofill ​

kind="current-password" is the default. Use kind="new-password" when creating a password. submitLabel supplies the Return-key hint; onSubmit handles Return.

API ​

Scroll horizontally to read every column.

PropTypeDescription
labelstringThe accessible name.
valuestringThe current text.
onChange(value: string) => voidReceives edited text.
promptstringOptional placeholder.
kind'current-password' | 'new-password'Password autofill intent.
submitLabelSubmitLabelReturn-key hint.
onSubmit() => voidReturn action.

Related: Quick start, List, Screen.

:::

Satin runs on the Lumen rendering engine and is open source under the MIT License.