Skip to main content

Helper Text Component

Figma

The glu-helper-text component displays a helper message with an optional icon on the left and text content on the right. The icon is rendered via the glu-icon component, and the text is provided through the default slot. Additionally, the component supports error styling by setting the isError property.

Basic Usage

Example 1: Standard Helper Text

Result
Loading...
Live Editor
<glu-helper-text icon="information-circle" icon-variant="outline">
  This is a helper message.
</glu-helper-text>

Error State

Enable error styling by setting the isError property. This is useful for displaying error messages with appropriate visual cues.

Result
Loading...
Live Editor
<glu-helper-text icon="information-circle" icon-variant="outline" is-error>
  This is an error message.
</glu-helper-text>

Properties

PropertyAttributeDescriptionTypeDefault
iconiconThe name of the icon to display. The provided value should correspond to a valid icon in the glu-icon component.stringundefined
iconVarianticon-variantSpecifies the visual style variant of the icon. Possible values: - solid: renders the solid version of the icon. - outline: renders the outlined version of the icon."outline" | "solid"'outline'
isErroris-errorWhen set to true, applies error styling to the helper text.booleanfalse

Dependencies

Used by

Depends on

Graph


Built with StencilJS