(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Input

Link to Figma: https://www.figma.com/design/yck1tcUXgdQ5aYX6iUAwrO/GE---Astronaut-Design-System?node-id=11628-199694&t=ftfrOGkPzlG2GaTo-1

Overview

Example Input

Specs

Tokens

Token Description
displayName Display name in the structure panel
labelTranslations Label text with multi-language support
counterVisible Shows a character counter below the input
customIconName Displays a custom icon inside the input field
hidden Controls whether the component is visible
saveInLocalStorage Preserves entered value in local storage
defaultValue Sets the initial text value on load or reset
readonly Displays value but prevents editing
paddingClass Spacing around the input using CSS classes
dataField Field name used when submitting form data
controlsRequestType Defines how the field data is sent (BODY, HEADER, PATH)
validation Configures validation rules
required Field must have a value before submission
email Validates input as a properly formatted email
maxLength Sets maximum number of characters allowed
minLength Sets minimum number of characters required
pattern Regular expression pattern the input must match
authorizationDisable Disables the input based on user permissions
visibilityPolicySetId Controls visibility based on policy sets
displayConditions Conditions for displaying the input field
events Configures component events
ON_VALUE_CHANGE (Events) Event triggered when input value changes
ON_INIT_BASED_ON_USER_VIEW (Events) Event triggered when component initializes in user view mode
ON_INIT (Events) Event triggered when input is initialized
ON_DESTROY (Events) Event triggered when component is removed from DOM
id Unique identifier for programmatic access
dataTestId Testing hook ID for automated tests
enableAsHotspot Enables input as guided tour hotspot
guidedTourHotSpotTitle Title for guided tour hotspot
guidedTourHotSpotDescription Description for guided tour hotspot

Structure

Labled structure of Input

(Configured in General Properties)

(Configured in Non-Visual Properties)

(Configured in Visibility)

Styling

(Configured in Visual Properties)

Input variants

Actions & Variants

(Configured in Events)

(Configured in Visual Properties)

Validation

(Configured in Validation)

Authorization

(Configured in Authorization)

Tests

(Configured in Testing Hooks)

Guidelines

Usage

Sizing & Layout

States & Feedback

Data-Driven / Conditional Behavior

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Localize the label (sentence case) for each target locale. Hard-code an English label or rely on an icon alone. labelTranslations, label, customIconName
Bind the input to a named field and correct request placement. Send unnamed values or rely on server defaults. dataField, controlsRequestType
Pre-fill when you know the value; keep it editable. Force users to retype data you already have. defaultValue, readonly
Turn on the counter when enforcing length limits. Hide limits until submit. counterVisible, maxLength, minLength
Validate on change for immediate feedback. Wait until submit to reveal basic errors. validation, ON_VALUE_CHANGE
Enforce format using pattern or email. Depend on placeholder/tooltip (not provided) to teach format. pattern, email, validation
Disable when users can see but not change the value; hide when they must not see it. Show a restricted field as editable or visible to all. readonly, authorizationDisable, visibilityPolicySetId
Gate visibility on prerequisites and state. Keep the field visible regardless of form state. displayConditions, hidden
Persist progress locally for long edits. Clear the field on accidental navigation. saveInLocalStorage
Use test hooks for automation. Target the control by visible text. id, dataTestId

Accessibility