Documentation
Design
Components
Input

EccUtilsDesignInput Component

2.0.0-alpha.6
<ecc-utils-design-input/>
EccUtilsDesignInput

Overview

The ecc-utils-design-input component is a versatile, styled text field for form data entry. It supports various input types, placeholder text, and disabled states.

This component is a wrapper around the native HTML <input> element, providing consistent styling and custom events.

Usage

Basic Input

This example shows a default text input field.

Input with Label

This example shows an input field associated with a label.

Email

Properties

PropertyTypeDefaultDescription
typestring"text"The type of input (e.g., text, email).
placeholderstring""Placeholder text for the input.
valuestring""The current value of the input.
disabledbooleanfalseWhen true, disables the input.

type

Specifies the input type, determining the data format and keyboard layout on mobile devices.

<EccUtilsDesignInput type="password" />

placeholder

Provides a hint to the user about what information to enter in the input field.

<EccUtilsDesignInput placeholder="Your email address" />

value

The current value of the input field. Can be used for controlled components in React.

<EccUtilsDesignInput value="pre-filled.value@example.com" />

disabled

When true, the input is non-interactive and visually de-emphasized.

<EccUtilsDesignInput disabled={true} />

Events

Event NameReact Event NameDetail TypeDescription
ecc-input-changedonEccInputChanged{ value: string }Fired when the value of the input changes.

ecc-input-changed

Fires whenever the user types or pastes content into the input.

<EccUtilsDesignInput 
  onEccInputChanged={(event) => {
    console.log(event.detail.value);
  }}
/>
Elixir Cloud & AAICloud SDKElixir

Released under Apache 2.0 License.

Copyright © 2023-2025 ELIXIR