Skip to content

Input Message

Input Message provides a contextual message to a user allowing the passing of content, links, etc.

Note
When the component is empty, the hidden property/attribute should be used to hide the component from the DOM, otherwise additional spacing will be displayed.

Overview

Input Message is a utility component, which can provide context or helpful hints to an accompanying component, such as an Input.

Usage

  • Error message handling for a form-based component
  • Additional messaging to an accompanying component

Sample

API reference

Properties

PropertyAttributeDescriptionTypeDefault
iconiconSpecifies an icon to display.boolean | string
iconFlipRtlicon-flip-rtlWhen true, the icon will be flipped when the element direction is right-to-left ("rtl").booleanfalse
scalescaleSpecifies the size of the component."l" | "m" | "s""m"
statusstatusSpecifies the status of the input field, which determines message and icons."idle" | "invalid" | "valid""idle"

Slots

NameDescription
default (unnamed)A slot for adding text.

Styles

NameDescription
--calcite-input-message-spacing-value
deprecated Use --calcite-input-message-spacing. Specifies the margin spacing at the top of the component.
--calcite-input-message-spacingSpecifies the margin spacing at the top of the component.
--calcite-input-message-icon-colorSpecifies the component's icon color.

Methods

NameDescriptionSignature
componentOnReadyCreate a promise that resolves once component is fully loaded.componentOnReady(): Promise<void>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.