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.

Path layout on desktop with step 1, Details, current.
Path layout on desktop with step 1, Details, current.

Layouts

LayoutAPI valueWhat the user seesExample
AutoautoA 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.
PathpathNumbered circles on a line: complete, current, and upcoming.Step 1 Details, 2 Dates, 3 Review, 4 Confirm.
DotsdotsCompact dots. The current label stays visible.A small indicator when labels are long.
BarbarLabels plus a progress bar.A labeled bar under the screen heading.
Compactcompact"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".

Dots layout. The current step label shows under its dot.
Dots layout. The current step label shows under its dot.
Bar layout: step labels and a progress bar, on step 3 of 4.
Bar layout: step labels and a progress bar, on step 3 of 4.
Nine steps on desktop: the Path layout with step 5 current, and the Compact layout below it.
Nine steps on desktop: the Path layout with step 5 current, and the Compact layout below it.

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.

Compact layout with Clickable Steps on: "Step 4 of 4", the label, and the bar. With Clickable Steps on, the step list also shows so the user can tap a step.
Compact layout with Clickable Steps on: "Step 4 of 4", the label, and the bar. With Clickable Steps on, the step list also shows so the user can tap a step.

Add it to a screen

  1. Add NC Stepper near the top of each screen in the wizard.
  2. 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.
  3. 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.
  4. 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

Properties

PropertyAPI nameDefaultDescription
LabelfieldLabel(blank)Optional heading shown above the stepper.
Help TexthelpText(blank)Optional hint under the label.
Stepssteps(blank)Comma-separated step labels, e.g. Customer, Dates, Payment, Confirm. Use \, for a comma inside a label.
Current StepcurrentStep(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.
Layoutlayoutautoauto (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 StepsclickablefalseWhen 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.
RequiredrequiredfalseBlock Next until a current step is set (or, when clickable, until the user has picked a step).
Required MessagerequiredMessage(blank)Optional. Blank uses the translated default.
DisableddisabledfalseShow the stepper read-only (clicks are ignored).
Accent ColoraccentColor(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 ColorbackgroundColor(blank)Optional color behind the whole component.
Text ColortextColor(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 Sizesizemediumsmall, medium (default), large or xlarge.
Corner Shapeshaperoundedrounded (default), square or pill.
Alignmentalignstartstart (default), center or end.
Navigate After SelectionnavigateOnSelectnonenone (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 ActionsavailableActions(blank)Set by Flow; do not map.

Outputs

OutputAPI nameTypeDirectionDescription
Selected StepselectedStepNumberOutput1-based number of the current or tapped step.
Selected Step LabelselectedStepLabelTextOutputLabel 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.