Help Center

| Submit or View Help Requests | Developer Docs |
| |

Component Libraries Explained

Components are the individual building blocks, like hero images and task cards, that make up your widget or microsite. All of our current templates are powered by our Mint and Bedrock components libraries.

Mint components

Widgets and microsites built with mint components provide customer advocates with the latest Advocate experiences. Most of the current templates use Mint components. If you aren’t sure, you can manually check to make sure you’re using the current component library, and update your library if needed.

To upgrade to mint components for your program widget:

  1. From the left navigation menu, select Content.

  2. Select Edit widgets on the widgets card.

  3. Select the name of the widget you want to edit.

  4. In the left sidebar menu, select Packages.

  5. Select plus-solid__1_.svg Add package.

  6. Select plus-solid__1_.svg Add on the mint components card.

  7. Select Save in the upper right corner of the page.

To upgrade to mint components for your microsite:

  1. From the left navigation menu, select Content.

  2. Select the Edit settings button on the microsite card.

  3. Under the Site Hosting heading, select the Edit button next to Packages.

  4. Select plus-solid__1_.svg Add Package.

  5. Select plus-solid__1_.svg Add on the mint components card.

  6. Select Save.

Bedrock components

All templates powered by mint components also have the bedrock component package installed. Bedrock components can’t be seen by participants, but they offer the ability to add advanced logic to your design. They can conditionally show other components and define which program a component sources data from. You can find the bedrock components package in the Advanced components section within the Add tab.

There are two components in the bedrock component package:

The conditional section component lets you include conditional content based on a participant’s email, segment, or custom field. Insert a JSONata expression in the Condition box to set the display conditions.

Custom component libraries

You can bring in your own components to further customize your Advocate experience. These components can be added to any template and used alongside Advocate-provided components.

Advocate widgets use standard HTML and web components. To use your own components in our widget editor, they must be written as web components.

To begin building your widget with custom components, install your custom package:

  1. From the left navigation menu, select Content.

  2. Select Edit widgets on the widgets card.

  3. Select the name of the widget you want to edit.

  4. In the left sidebar menu, select Packages.

  5. Select plus-solid__1_.svg Add package.

  6. Select plus-solid__1_.svg Add from NPM.

  7. Enter the package name, version and file path.

  8. Select plus-solid__1_.svg Add.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.