Skip to main content

Password Field

Securely input password data with masked display.

Properties

PropertyTypeDescription
Name (name)stringUnique identifier for the password field component
Label (label)stringText displayed on the left side of the password field
Default Value (defaultValue)stringThe default value template applied to the password field
Validation (validator)stringValidator for the field value
Placeholder (placeholder)stringPlaceholder applied to the password field
Disable Component (isDisabled)booleanWhether the password field is disabled
Hide Component (isHidden)booleanWhether to hide the password field on the deployed page
Width (display)DisplayHow the password field component occupies width
Width (px) (contentWidth)string (number)Fixed width of the password field component
Label Width (labelWidth)stringThe width of the label on the left side of the password field

Name (name)

Sets the unique identifier for the password field component. Please refer to the component naming rules

Label (label)

Sets the text displayed on the left side of the password field. (Supports Template Text)

Default Value (defaultValue)

Sets the default value for the component.
Can be set through workflow results, direct input.

Validation (validator)

Sets validation rules for the field.
Can be set through workflow results, direct input. This validates the field value and displays error messages.

// Default error message
value !== 'Hello World'

// Custom error message
value !== 'Hello World' ? 'value is not Hello World' : undefined

Placeholder (placeholder)

Sets the field's placeholder text.

Disable Component (isDisabled)

Sets the disabled state of the component.
Can be set through workflow results, direct input.
When enabled, prevents user interaction with the component.

Hide Component (isHidden)

Controls visibility of the component.
When set to true:

  • Hidden in deployed view
  • Visible with reduced opacity in edit mode

Width (display)

Sets how the component occupies width.
Selecting "Block" enables full-width usage, while "Fixed width" allows you to enter a specific width in pixels.
Fixed-width components can be arranged sequentially.

Width (px) (contentWidth)

Sets the component's width in pixels.
Can be set through workflow results, direct input.

Label Width (labelWidth)

Sets the width of the label section.
Accepts values in pixels or percentages.

States

PropertyTypeDescription
valuestringThe value of password field

Type Definitions

type Display = 'inline-block' | 'block';