This first example shows how to build a simple unstyled onboarding checklist component that tracks users’ progress and status through the the checklist.
1
Create a custom Flow
First, let’s create a new Custom Flow in Frigade by opening the Flows page and clicking on the Create Flow button.
2
Define your config.yml
Next, open the Editor tab and paste in the following config.yml. As this is a headless component, you can use any YAML schema that works for you. It will later be converted into JSON and be available in your code.
config.yml
Copy
title: Onboarding Checklistsubtitle: A simple onboarding checkliststeps: - id: connect-account title: Connect your account subtitle: Integrate your favorite tools - id: invite-team title: Invite your team subtitle: Life is better with friends - id: create-project title: Create your first project subtitle: Projects allow you to easily organize your work
If you want your flow to include separate subtasks, you need to add the steps array to your config.yml. This will allow Frigade to track users’ state across steps and show you the conversion rate between steps.
However, if you simply want to render content, this is not necessary.
Copy the flowId from Frigade. You will need it later.
3
Connect Flow to your component
Now, let’s create a React component that works with our custom Flow:
This first example shows how to build a simple unstyled onboarding checklist component that tracks users’ progress and status through the the checklist.
1
Create a custom Flow
First, let’s create a new Custom Flow in Frigade by opening the Flows page and clicking on the Create Flow button.
2
Define your config.yml
Next, open the Editor tab and paste in the following config.yml. As this is a headless component, you can use any YAML schema that works for you. It will later be converted into JSON and be available in your code.
config.yml
Copy
title: Onboarding Checklistsubtitle: A simple onboarding checkliststeps: - id: connect-account title: Connect your account subtitle: Integrate your favorite tools - id: invite-team title: Invite your team subtitle: Life is better with friends - id: create-project title: Create your first project subtitle: Projects allow you to easily organize your work
If you want your flow to include separate subtasks, you need to add the steps array to your config.yml. This will allow Frigade to track users’ state across steps and show you the conversion rate between steps.
However, if you simply want to render content, this is not necessary.
Copy the flowId from Frigade. You will need it later.
3
Connect Flow to your component
Now, let’s create a React component that works with our custom Flow:
This second example shows how to build a custom changelog component that gives users the latest updates from your product.
In contrast to the previous example, this component will not be stateful, but simply render the latest updates for your changelog from your config.yml file.
1
Create a custom Flow
First, let’s create a new Custom Flow in Frigade by opening the Flows page and clicking on the Create Flow button.
2
Define your config.yml
Now, in the Flow Editor paste the following config.yml:
config.yml
Copy
title: Changelogsubtitle: The latest updates to our productupdates: - id: 1 title: New feature description: We added a new feature date: 2022-11-11 - id: 2 title: Bugfix description: We fixed a bug date: 2022-11-12 - id: 3 title: New feature description: We added another new feature date: 2022-11-13
3
Create your changelog component
Next, let’s create a React component that works with our custom Flow: