Skip to content

Share bar - Web Component โ€‹

...

Browser support โ€‹

Detected engine: ย 

  • Chromium

  • Webkit

  • Gecko

Parameters โ€‹

The Web component uses the <z-share-bar> tag:

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescription
contentstringThe quote content
socialobjectThe social media links

Playground โ€‹

Customization โ€‹

HTML Examples โ€‹

Imports
html
<link rel="stylesheet" href="/0.4.4/@zurich/web-components/styles.css" />
<script type="module" src="/0.4.4/@zurich/web-components/share-bar.js"></script>
Code
html
<z-share-bar social='{ "facebook": "#"", "linkedin": "#"", "instagram": "#", "twitter": "#", "youtube": "#" }'>
  Share text
</z-share-bar>