Stepper.Items
The Stepper.Items slot acts as a container for all the Stepper.Item components within the Stepper.
Installation
Section titled “Installation”Every component ships with the boilerplate. If you are working in your own project, add Stepper with the Gameface CLI:
npx gameface-cli add StepperThe CLI pulls in whatever Stepper depends on. To refresh an existing copy, update it instead.
To use Stepper.Items, place it inside the Stepper component as shown below:
import Stepper from '@components/Basic/Stepper/Stepper';
<Stepper> <Stepper.Items> <Stepper.Item selected value="red">red</Stepper.Item> <Stepper.Item value="green">green</Stepper.Item> <Stepper.Item value="blue">blue</Stepper.Item> </Stepper.Items></Stepper>| Prop Name | Type | Default | Description |
|---|---|---|---|
style | JSX.CSSProperties | {} | Inline styles applied directly to the container element of the stepper items. |
class | string | "" | Additional CSS classes for the container element of the stepper items. |
children | JSX.Element | "" | The children of Stepper.Items should include all Stepper.Item components. |
Guide - Customize the container’s appearance
Section titled “Guide - Customize the container’s appearance”To modify the width of the container displaying the selected item, you can use the following approach:
import Stepper from '@components/Basic/Stepper/Stepper';
const App = () => { return ( <Stepper> <Stepper.Items> <Stepper.Items style={{ width: '200px', flex: 'none' }}> <Stepper.Item selected value="red">red</Stepper.Item> <Stepper.Item value="green">green</Stepper.Item> <Stepper.Item value="blue">blue</Stepper.Item> </Stepper.Items> </Stepper> );};
export default App;Stepper.Item
Section titled “Stepper.Item”This slot is used to add individual items to the Stepper and customize their appearance.
Properties
Section titled “Properties”| Prop Name | Type | Default | Description |
|---|---|---|---|
style | JSX.CSSProperties | {} | Inline styles applied directly to the stepper item element. |
class | string | "" | Additional CSS classes for the stepper item element. |
value | string | undefined | The value associated with the stepper item. |
selected | boolean | false | Specifies whether the stepper item is selected. |
children | JSX.Element | "" | Content of the item, which can include text, HTML, or JSX elements. |
import Stepper from '@components/Basic/Stepper/Stepper';
const App = () => { return ( <Stepper> <Stepper.Items> <Stepper.Item selected value="red">red</Stepper.Item> <Stepper.Item value="green">green</Stepper.Item> <Stepper.Item value="blue">blue</Stepper.Item> </Stepper.Items> </Stepper> );};
export default App;© 2026 Coherent Labs. All rights reserved.