A step component used within a stepper to represent an individual step in a wizard-like workflow.
- Element
-
igc-step
- Slots
-
default— Renders the content of the step. -
indicator— Renders the indicator of the step. By default, it displays the step index + 1. -
title— Renders the title of the step. -
subtitle— Renders the subtitle of the step.
- CSS Parts
-
header-container— Wrapper of the step's `header` and its separators. -
disabled— Indicates a disabled state. Applies to `header-container`. -
complete-start— Indicates a complete state of the current step. Applies to `header-container`. -
complete-end— Indicates a complete state of the previous step. Applies to `header-container`. -
optional— Indicates an optional state. Applies to `header-container`. -
invalid— Indicates an invalid state. Applies to `header-container`. -
top— Indicates that the title is above the indicator. Applies to `header-container`. -
bottom— Indicates that the title is below the indicator. Applies to `header-container`. -
start— Indicates that the title is before the indicator. Applies to `header-container`. -
end— Indicates that the title is after the indicator. Applies to `header-container`. -
header— Wrapper of the step's `indicator` and `text`. -
indicator— The indicator of the step. -
text— Wrapper of the step's `title` and `subtitle`. -
empty— Indicates that the step shows no title and subtitle. Applies to `text`. -
title— The title of the step. -
subtitle— The subtitle of the step. -
body— Wrapper of the step's `content`. -
content— The step's `content`.
Remarks
Each step has a header (with an indicator, title, and subtitle) and a content area.
Steps can be marked as active, complete, disabled, optional, or invalid
to control their appearance and behavior within the stepper.
Custom indicators can be provided via the indicator slot, and the content area
is rendered in the default slot.
Example
<igc-step>
<igc-icon slot="indicator" name="home"></igc-icon>
<span slot="title">Home</span>
<span slot="subtitle">Return to the home page</span>
<p>Welcome! This is the first step.</p>
</igc-step> Properties
Section titled "Properties"active
Section titled "active"Whether the step is active.
Active steps are styled with an active state and their content is visible. Setting it activates the step at once, also a disabled step, so of several steps set in one task, the last one is active.
active: boolean = false Defined in src/components/stepper/step.ts:232
complete
Section titled "complete"Whether the step is completed.
complete: boolean = false Defined in src/components/stepper/step.ts:263
disabled
Section titled "disabled"Whether the step is disabled.
Disabled steps are styled with a disabled state and are not interactive.
disabled: boolean = false Defined in src/components/stepper/step.ts:254
invalid
Section titled "invalid"Whether the step is invalid.
A visited step that is not active shows an error state. In linear mode, the user cannot open the steps after an invalid step.
invalid: boolean = false Defined in src/components/stepper/step.ts:212
optional
Section titled "optional"Whether the step is optional.
In linear mode, an invalid optional step does not block the steps after it.
optional: boolean = false Defined in src/components/stepper/step.ts:243
tagName
Section titled "tagName"The tagName read-only property of the Element interface returns the tag name of the element on which it's called.
tagName: "igc-step" = 'igc-step' Defined in src/components/stepper/step.ts:103