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

  1. You create one container page on your site, for example https://www.example.com/wellbeing.
  2. The page loads the CredibleMind embed script and renders a component into a <div>.
  3. The CredibleMind page to show comes from the cm_page URL parameter, for example https://www.example.com/wellbeing?cm_page=topics/anxiety, or from the components property when there is no parameter.
  4. As the user navigates, the embed updates cm_page in 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.

On this page