1. Reference
  2. Forms and input

<step>

One step in a stepper: a title, an optional subtitle and a state that sets its icon and color.

Forms and input
step.ham
<stepper>
    <step title="Cart"
          subtitle="2 items"
          state="complete"/>
    <step title="Shipping"
          subtitle="Choose an address"
          state="editing"/>
    <step title="Payment"/>
</stepper>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Attributes

NameWhat it doesDefault
state The step's state (its icon and color).
indexed, complete, editing, error, disabled
indexed
subtitle Step subtitle
string
title Step title
string
Step

Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.

This page is also Markdown, and all of HAM is in llms.txt.