Skip to content

Files

Latest commit

 

History

History
28 lines (21 loc) · 868 Bytes

ui-components.mdx

File metadata and controls

28 lines (21 loc) · 868 Bytes
title sidebarTitle
UI Components
Overview

UI components are a way of describing some UI when creating threads or events or building customer cards.

For example - this is a button that links to Stripe.

{
  "componentLinkButton": {
    "linkButtonUrl": "http://stripe.com/",
    "linkButtonLabel": "View in Stripe"
  }
}

and it looks like this:

![Example button linking to stripe](/public/images/ui-component-link-button-stripe.png)

In the GraphQL API schema, we have two separate unions for Custom Timeline Entry Components and Customer Card Components, but both unions share the same types therefore they can be treated as the same.

To see UI components in action you can experiment with them in the UI components playground