Preview

A <FrigadeChecklist/> with the default (basic) style
Code
config.yml props
The following props are available inconfig.yml
in the steps
array:The steps to show in the checklist flow.
Unique identifier for the step. Do not change this once the step has been created.
The title of the step
The description of the step
Url to an image to display in the step
Url to a video to display in the step such as YouTube, Vimeo, or a direct link to an mp4 file
The title of the primary button
The url to open when the primary button is clicked
The target of the primary button url (default: _blank; use _self to open in the same window). Setting it to # will open the existing page and dismiss any Frigade modals.
The title of the secondary button
The url to open when the secondary button is clicked
Works similarly to primaryButtonUriTarget but for the secondary button
Targeting that automatically completes the step (e.g. user.properties.connectedBank == true).
Targeting that automatically blocks the step from starting until it becomes true (e.g. user.properties.connectedBank == true)
Targeting that automatically shows the step when it becomes true (e.g. user.properties.connectedBank == true)
Additional properties that can be used depending on the component type
Whether to autoplay the video specified in the videoUri. Note that autoplaying videos with audio is not allowed by most browsers.
A short name for the step
Whether or not the step can be skipped. This will mark the step as completed when clicking the secondary CTA.
Whether or not to automatically mark the step as completed when the user clicks the primary button
React component props
- appearance
- autoExpandFirstIncompleteStep
- autoExpandNextStep
- checklistStyle
- className
- customStepTypes
- customVariables
- flowId
- hideOnFlowCompletion
- onButtonClick
- onComplete
- onDismiss
- onStepCompletion
- setVisible
- style
- subtitle
- title
- type
- visible
appearance
Optional
appearance: Appearance
The appearance of the flow. See https://docs.frigade.com/sdk/styling
View definition
autoExpandFirstIncompleteStep
Optional
autoExpandFirstIncompleteStep: boolean
View definition
autoExpandNextStep
Optional
autoExpandNextStep: boolean
View definition
checklistStyle
Optional
checklistStyle: "default"
| "condensed"
| "with-guide"
| "carousel"
View definition
className
Optional
className: string
View definition
customStepTypes
Optional
customStepTypes: Record
<string
, ReactNode
| (stepData
: StepData
, appearance
: Appearance
) => ReactNode
>
Map of custom step types that the checklist supports. To use a custom steps in your checklist, see Component Customization
View definition
customVariables
Optional
customVariables: Object
See https://docs.frigade.com/flows/dynamic-variables
Index signature
▪ [key: string
]: string
| number
| boolean
View definition
flowId
flowId:string
View definition
hideOnFlowCompletion
Optional
hideOnFlowCompletion: boolean
View definition
onButtonClick
Optional
onButtonClick: (step
: StepData
, index?
: number
, cta?
: "primary"
| "secondary"
| "link"
| "back"
| "collapse"
| "expand"
, nextStep?
: StepData
) => boolean
Handler for when a primary or secondary CTA is clicked (regardless if step is completed or not).
Return true if your app performs an action (e.g. open other modal or page transition).
Parameters
Name | Type |
---|---|
step | StepData |
index? | number |
cta? | "primary" | "secondary" | "link" | "back" | "collapse" | "expand" |
nextStep? | StepData |
Returns
boolean
View definition
onComplete
Optional
onComplete: () => void
Returns
void
View definition
onDismiss
Optional
onDismiss: () => void
Returns
void
View definition
onStepCompletion
Optional
onStepCompletion: (step
: StepData
, index
: number
, nextStep?
: StepData
, allFormData?
: any
, stepSpecificFormData?
: any
) => boolean
Handler for when a step is completed.
Parameters
Name | Type | Description |
---|---|---|
step | StepData | |
index | number | |
nextStep? | StepData | |
allFormData? | any | All form data collected so far (only applicable to FrigadeForms) |
stepSpecificFormData? | any | Form data collected for the finished step (only applicable to FrigadeForms) |
Returns
boolean
View definition
setVisible
Optional
setVisible: (visible
: boolean
) => void
Parameters
Name | Type |
---|---|
visible | boolean |
Returns
void
View definition
style
Optional
style: CSSProperties
View definition
subtitle
Optional
subtitle: string
View definition
title
Optional
title: string
View definition
type
Optional
type: "inline"
| "modal"
View definition
visible
Optional
visible: boolean
View definition