Skip to content

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.IconName | boolean
iconFlipRtlicon-flip-rtlWhen true and the element direction is right-to-left ("rtl"), flips the components icon`.booleanfalse
scalescaleSpecifies the size of the component.Scale"m"
statusstatusSpecifies the input field's status, which determines message and icons.Status"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 component's top margin spacing.
--calcite-input-message-icon-colorSpecifies the component's icon color.

Methods

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

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