Salesforce
How to install it
Set the trusted URLs in
Security & Privacy
>Content Security Policy (CSP)
and adding to theTrusted Sites for Scripts
the necessaryhttps://zds.zurich.com
URLs.Add the imports to the
<head>
of the documents in theAdvanced
>Head markup
configuration:html<link rel="stylesheet" href="https://zds.zurich.com/@zurich/web-components/styles.css" /> <script type="module" src="https://zds.zurich.com/@zurich/web-components/index.js"></script>
We can specify a version:
html<link rel="stylesheet" href="https://zds.zurich.com/1.0.0/@zurich/web-components/styles.css" /> <script type="module" src="https://zds.zurich.com/1.0.0/@zurich/web-components/index.js"></script>
Add the
https://zds.zurich.com
necessary URLs into the DevAutopagesSecurity
>Trusted URLs
list for the application.Use the
lwc:external
in the componenthtml<template> <z-button config="positive" lwc:external>Button</z-button> </template>