tsx or jsx extension file. Depending on the type of component, you’ll need to import them from one of two SDK directories.
- Standard components are imported from
'@hubspot/ui-extensions' - CRM data and CRM action components are imported from
'@hubspot/ui-extensions/crm'
For a visual library of these UI components, check out HubSpot’s Figma Design Kit.
Standard components
Standard components are components that can be used for both internal and external data. These components do not fetch data on their own, but are more flexible in their implementation. These components are imported from'@hubspot/ui-extensions'.
CRM action components
CRM action components provide a built-in set of CRM-related actions, including adding notes to records, opening a one-to-one email composition window, creating new records, and more. Each component can perform the same set of actions, so which component to choose will depend on your needs and preferences. Learn more about CRM action components. CRM action components are imported from@hubspot/ui-extensions/crm.
| Component | Description |
|---|---|
| CrmActionButton | A button that can execute a built-in set of CRM actions. |
| CrmActionLink | A clickable link that can execute a built-in set of CRM actions. |
| CrmCardActions | Smaller standalone or dropdown menu buttons that can contain multiple CRM actions. |