NC Stepper
Not yet released: this component will ship in an upcoming Native Rent package version.
NC Stepper shows the user's place in a multi-screen flow. It can be a path, dots, a labeled bar, or a compact "Step 2 of 5".
Use it at the top of each screen in a wizard, for example Details, Dates, Review, Confirm.
Layouts
| Layout | API value | What the user sees | Example |
|---|---|---|---|
| Auto | auto | A path on a wide screen. Compact on a phone or a narrow column. | Leave Auto so a nine-step path becomes compact on a phone. |
| Path | path | Numbered circles on a line: complete, current, and upcoming. | Step 1 Details, 2 Dates, 3 Review, 4 Confirm. |
| Dots | dots | Compact dots. The current label stays visible. | A small indicator when labels are long. |
| Bar | bar | Labels plus a progress bar. | A labeled bar under the screen heading. |
| Compact | compact | "Step 2 of 5", the current label, and a bar. | A phone-width wizard header. |
Auto switches to Compact on a phone or when the component is under 600 px wide.
The steps always stay on one row and do not wrap. In the Path, Dots, and Bar layouts, when each step gets less than about 88 px, the step labels are hidden (screen readers still read them), the step marks shrink to fit, and a caption under the row shows the current step, for example "Step 5 of 9: Capture".
Steps is a comma-separated list of labels. Write \, for a comma inside a label. Current Step is a step number starting at 1, or a step label. Map a number variable and update it as the flow moves from screen to screen.
The stepper is display-only unless Clickable Steps is on (off by default). Then a tap sets Selected Step and Selected Step Label, and Navigate After Selection can move the flow.
Add it to a screen
- Add NC Stepper near the top of each screen in the wizard.
- Set Steps to the same list on every screen. Map Current Step to a number variable, and assign it as the flow moves: 1, 2, 3, and so on.
- Leave Clickable Steps off for a display-only indicator. Turn it on only if a tap should set Selected Step and optionally move the flow.
- Debug at desktop width and at about 390 px to check the Auto switch.
Validation
Required blocks Next until a current step is set. When Clickable Steps is on, it blocks Next until the user picks a step. Required Message is optional.
Phone and desktop
Auto switches to Compact on a phone or in a narrow column, so a long path does not overflow. 44 px touch targets apply at 600 px or less, on a phone, or on a touch screen. Colors, text size, corner shape, and alignment work as on the other components. NC Stepper has no Color Map.
Limits
- The stepper does not change screens by itself unless Clickable Steps is on and Navigate After Selection is set. You still set Current Step as the flow moves.
- On a narrow screen, a long Path hides its step labels and shows only the current one under the row. Use Auto or Compact there to show "Step X of N", the label, and a bar instead.
Properties
| Property | API name | Default | Description |
|---|---|---|---|
| Label | fieldLabel | (blank) | Optional heading shown above the stepper. |
| Help Text | helpText | (blank) | Optional hint under the label. |
| Steps | steps | (blank) | Comma-separated step labels, e.g. Customer, Dates, Payment, Confirm. Use \, for a comma inside a label. |
| Current Step | currentStep | (blank) | The current step as a 1-based number or a step label. Map a variable in as the flow moves from screen to screen. |
| Layout | layout | auto | auto (default), path, dots, bar or compact. Auto: path on wide screens, compact (Step N of M plus a bar) on phones or under 600px. |
| Clickable Steps | clickable | false | When on, the user can tap a step. The chosen step is sent in Selected Step / Selected Step Label, and Navigate After Selection can move the Flow. Off (default) is display-only. |
| Required | required | false | Block Next until a current step is set (or, when clickable, until the user has picked a step). |
| Required Message | requiredMessage | (blank) | Optional. Blank uses the translated default. |
| Disabled | disabled | false | Show the stepper read-only (clicks are ignored). |
| Accent Color | accentColor | (blank) | Selected and focus color, e.g. #0B5CAB. Hex, rgb() or a color name. Lightened or darkened until it reaches 3:1 against the tile color (or the theme surface if no tile is set). Also tints the focus ring and the selected/highlighted row. Blank follows the org theme (and dark mode). |
| Background Color | backgroundColor | (blank) | Optional color behind the whole component. |
| Text Color | textColor | (blank) | Optional. On choices and results: used as-is on the theme surface, or checked at 4.5:1 against a tile color if one is set. On the label and help: checked at 4.5:1 against the background if one is set; otherwise dark or white text is picked automatically. |
| Text Size | size | medium | small, medium (default), large or xlarge. |
| Corner Shape | shape | rounded | rounded (default), square or pill. |
| Alignment | align | start | start (default), center or end. |
| Navigate After Selection | navigateOnSelect | none | none (default), next, back, finish or pause. After a clickable step is picked the Flow moves on, so you can hide the screen footer buttons. Next and Finish check Required first; Next becomes Finish on the last screen. |
| Available Actions | availableActions | (blank) | Set by Flow; do not map. |
Outputs
| Output | API name | Type | Direction | Description |
|---|---|---|---|---|
| Selected Step | selectedStep | Number | Output | 1-based number of the current or tapped step. |
| Selected Step Label | selectedStepLabel | Text | Output | Label of the current or tapped step. |
Shared behavior
Layout and width, required messages, colors, navigation, data sources, translations, accessibility, and the setup panel work the same way on every component. See NC screen components.
To copy this component's settings to another screen, use Copy settings at the top of its setup panel. See Copy settings.