Skip to content

Action card - Web Component

...

Browser support

Parameters

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

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

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

INFO

Check the z-action-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/action-card.js"></script>
Code
html
<z-action-card header="Title" image-src="/0.3.7/sample.png" content="Description"
  button-text="Button"></z-action-card>