Skip to content

Article card - Web Component

...

Browser support

Parameters

The Web component uses a <z-article-card> tag.

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

NameTypeDescription
configstringCustom attribute for the article card component
headerstringThe title of the article card
image-srcstringThe image URL of the article card
contentstringThe content of the article card
button-textstringThe link text of the article card

INFO

Check the z-article-card anatomy. Use the Playground to see how you can customize this component.

Playground

Customization

HTML Examples

Imports
html
<link rel="stylesheet" href="/0.3.7/@zurich/web-components/styles.css" />
<script type="module" src="/0.3.7/@zurich/web-components/article-card.js"></script>
Code
html
<z-article-card header="Title" image-src="/0.3.7/sample.png" content="Description" tag="Tag text"
  button-text="Link">
</z-article-card>