Skip to main content

Slider Time

A dynamic onboarding step component that displays an interactive time/duration slider using Rive animations. Allows users to select values either through a slider interface or a custom picker modal, with support for different variants (time, duration, other) and customizable styling options. Integrates with the global apps context to store user selections.

Step Config

KeyDescriptionIs Optional?
typeShould be sliderTime to differs from other steps.Required
stepIdUnique step identifier.Required
backgroundColorThe background color of the page.Required
sliderUrlURL to rive asset that will be used, if added it will override the variantOptional
variantVariant that controls the used rive asset. The time represents the time slider asset and duration represent the duration slider asset.
should be time or duration
Required
titleTitle text to show on top of the step.Optional
subtitleSubtitle Text to show below the title.Optional
otherButtonLabelLabel for the other button, if skipped the other button is skipped as well.Optional
otherButtonBackgroundColorBackground color of other buttonOptional
ctaThe CTA to be added.Required
pickerThe picker that opens on clicking other button.Optional

CTA Config

KeyDescriptionIs Optional?
textCTA text.Required
textColorCTA text color.Required
backgroundColorThe background color of the CTA.Required

Picker Config

KeyDescriptionIs Optional?
titleTitle text.Required
titleColorTitle text color.Required
mapResultString to show how to map the result to be shown. Example if you have 3 columns with keys hour, minute and amPm then a mapResult option is {{hour}}:{{minute}} {{amPm}} which will view the selection in the previous format.Required
columnsThe options to be added inside the picker, it can consist of multiple columnsRequired

Column Config

KeyDescriptionIs Optional?
keyKey identifier for a column. Must be unique for each column.Required
padStartadds pad start to numbers. Ex. if padStart is 2 then 1 will be rendered as 01Optional
initialValueInitial selected value.Required
unitLabeladding unit to selected optionOptional
valuesArray of values to be added as options in the picker Ex.
[1,2,3,4,5,6,7,8,9,10,11,12]
Optional in case valuesIncrement is added
valuesIncrementObject that takes start, end and increment and created a list accordingly
to create 0 to 59 list you can use
{
  "start": 0,
  "end": 59,
  "increment": 1
}
Optional in case values is added, if both added valuesIncrement will take effect

Example

YesNoQuestion
{
"id": "fabulous_app_id2",
"journeyId": "6Gr4B9SkA3",
"bold": true,
"appId": "co.thefabulous.app",
"language": "en",
"seo": {
"title": "Fabulous",
"favicon": "https://www.thefabulous.co/images/favicon.png",
"description": "Track Your Way to Better Mental Health with A Top-Ranked App. Say Goodbye to uncertainty with Fabulous, Kickstart your day with a productive and healthy routine."
},
"managerConfig": {
"type": "energy",
"properties": {
"onboarding_in_app_message_sequence_enabled": false,
"onboarding_play_alternate_pings": true,
"onboarding_play_background_music": true
}
},
"steps": [
{
"stepId": "slider_time",
"type": "sliderTime",
"variant": "time",
"backgroundColor": "#151729",
"title": "Think about the night before a typical \"work day\":",
"subtitle": "How many hours do you sleep?",
"otherButtonLabel": "Other Time",
"cta": {
"text": "Next",
"textColor": "#19223E",
"backgroundColor": "#B3C0DD"
},
"picker": {
"title": "Select Time",
"titleColor": "#e2b3b8",
"mapResult": "{{hour}}:{{minute}} {{am_pm}}",
"columns": [
{
"key": "hour",
"padStart": 2,
"valuesIncrement": {
"start": 1,
"end": 12,
"increment": 1
},
"initialValue": 8
},
{
"key": "minute",
"padStart": 0,
"valuesIncrement": {
"start": 0,
"end": 59,
"increment": 1
},
"initialValue": 30
},
{
"key": "am_pm",
"values": ["AM", "PM"]
}
]
}
},
{
"type": "webview",
"stepId": "webviewPremium49",
"engine": "premium",
"module": "webfloating_pricing_control",
"hideCloseButton": true,
"subprintText": "",
"subprintColor": "#9B9B9B",
"topSubprintColor": "#5F5F5F",
"isOffer": true,
"showTrialReminderDialog": true,
"backgroundColor": "#0004A3",
"ctaText": "Continue",
"topSubprintText": "2 taps to start, super easy to cancel",
"deepLink": "{{APPLICATION_ID}}://pay/normalannual",
"redirectTo": "https://start.thefabulous.co/payment/pwyw/new-bi-monthly-39-fb?discount=25&upsellFlowId=fabulous_upsell_bundle_5apps_49_pdf_expert",
"ctaColor": "#FFFFFF",
"ctaBackgroundColor": "#251C93"
}
],
"logic": []
}