Skip to content
Components

Metric Components

Add countdown timers, progress bars, and step indicators.

Metric Components

Metric components communicate progress, urgency, and status to users. Use them to drive action with countdown timers, show how far along a user is with progress bars, or indicate which step of a multi-screen flow they are on.

Countdown Timer

A timer that counts down to a target time, creating urgency for time-sensitive promotions, limited offers, or onboarding deadlines.

Properties

PropertyTypeDescription
Target DatetextThe date/time the countdown reaches zero.
DurationnumberAlternative to target date: countdown from a fixed number of seconds.
FormatselectDisplay format: days/hours/minutes/seconds, or a subset.
Show LabelsbooleanDisplay unit labels (e.g., "hours", "min", "sec").
Label TexttextCustom unit labels. Localizable.
SeparatortextCharacter between time units (e.g., ":" or " ").
Font SizenumberDigit font size.
Font FamilyfontTypeface for the timer.
Font WeightselectDigit font weight.
Text ColorcolorTimer text color.
Background ColorcolorBackground behind each digit group.
Border RadiusnumberCorner rounding for digit backgrounds.
PaddingspacingInternal spacing.
Completed TexttextText shown when the timer reaches zero. Localizable.

Use cases

  • Limited-time discount offers
  • Trial expiration reminders
  • Event or launch countdowns
  • Session timeouts with visual urgency

Countdown timers continue to tick in real time on the device. If the user backgrounds and returns to your app, the timer syncs to the correct remaining time.


Progress Bar

A horizontal bar that fills to indicate progress toward a goal. Progress bars are effective for showing completion status, usage levels, or step advancement.

Properties

PropertyTypeDescription
ValuenumberCurrent progress value.
Max ValuenumberMaximum value (100% fill). Default: 100.
Show LabelbooleanDisplay the percentage or value text.
Label Formatselect"percentage" or "value" (e.g., "75%" vs "15/20").
HeightnumberBar height in pixels.
Track ColorcolorBackground track color (unfilled portion).
Fill ColorcolorFilled portion color.
Border RadiusnumberCorner rounding for the bar.
AnimatedbooleanAnimate the fill when the value changes.
WidthsizeBar width. Default: 100%.

Variable bindings

The progress value supports variable bindings, so you can display real user data:

  • Profile completion percentage from a user attribute
  • Usage quota consumed this billing period
  • Onboarding steps completed

Progress Indicator

A step/page indicator that shows which screen the user is on within a multi-screen flow. This component is essential for onboarding flows and surveys where users need to understand how many steps remain.

Properties

PropertyTypeDescription
Total StepsnumberTotal number of steps/screens in the sequence.
Current StepnumberThe currently active step (1-based).
StyleselectVisual style: dots, bars, numbers.
Active ColorcolorColor of the current step indicator.
Inactive ColorcolorColor of remaining step indicators.
Completed ColorcolorColor of completed step indicators.
SizenumberIndicator element size.
GapnumberSpacing between indicator elements.

Automatic step tracking

When placed in a flow, the progress indicator can automatically track the current screen position. The currentStep value updates as users navigate between screens, so you do not need to manually set it for each screen.

Use cases

  • Onboarding flow step tracker (e.g., "Step 2 of 5")
  • Survey progress indication
  • Multi-page form completion status

On this page