Components
Components Overview
Embed the full CredibleMind experience in your website or React Native app.
Components put CredibleMind pages (topics, lists, assessments, articles and more) inside your own site, in an iframe that resizes to fit its content. Users navigate CredibleMind without leaving your page, and the page they are on is kept in your URL, so links and bookmarks work.
How it works
- You create one container page on your site, for example
https://www.example.com/wellbeing. - The page loads the CredibleMind embed script and renders a component into a
<div>. - The CredibleMind page to show comes from the
cm_pageURL parameter, for examplehttps://www.example.com/wellbeing?cm_page=topics/anxiety, or from thecomponentsproperty when there is no parameter. - As the user navigates, the embed updates
cm_pagein your URL.
Almost any page on your CredibleMind site can be embedded. Its cm_page value is the page's path: for https://acme.crediblemind.com/topics/anxiety it is topics/anxiety.