Skip to main content

Contact Card Ready

Contact card is the default way to present contact details.

Open in new window
<duet-contact-card
image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAACGCAMAAAAvpwKjAAAAA1BMVEUAAACnej3aAAAAKElEQVR4nO3BgQAAAADDoPlT3+AEVQEAAAAAAAAAAAAAAAAAAAAAwDNGqgABX6KNlwAAAABJRU5ErkJggg=="
name="Etunimi Sukunimi"
description="Titteli"
email="etunimi.sukunimi@lahitapiola.fi"
phone="050 123 4567"
button-url="#"
button-text="Varaa aika"
button-icon="form-date"
>

<duet-collapsible heading="Matrikkelitiedot" margin="none">
<duet-list>
<duet-list-item>
<span slot="label">Example</span>
<span slot="value">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Aperiam impedit, possimus minima repudiandae.
</span>
</duet-list-item>
<duet-list-item>
<span slot="label">Example</span>
<span slot="value">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Aperiam impedit, possimus minima repudiandae. </span>
</duet-list-item>
</duet-list>
</duet-collapsible>
</duet-contact-card>
<duet-divider></duet-divider>
<duet-contact-card
image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAACGCAMAAAAvpwKjAAAAA1BMVEUAAACnej3aAAAAKElEQVR4nO3BgQAAAADDoPlT3+AEVQEAAAAAAAAAAAAAAAAAAAAAwDNGqgABX6KNlwAAAABJRU5ErkJggg=="
name="Etunimi Sukunimi"
description="Titteli"
email="etunimi.sukunimi@lahitapiola.fi"
phone="050 123 4567"
button-url="#"
button-text="Varaa aika"
button-icon="form-date"
>

<duet-collapsible heading="Matrikkelitiedot" margin="none">
<duet-list>
<duet-list-item>
<span slot="label">Example</span>
<span slot="value">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Aperiam impedit, possimus minima repudiandae.
</span>
</duet-list-item>
<duet-list-item>
<span slot="label">Example</span>
<span slot="value">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Aperiam impedit, possimus minima repudiandae. </span>
</duet-list-item>
</duet-list>
</duet-collapsible>
</duet-contact-card>

Properties #

Property Attribute Description Type Default
buttonIcon button-icon Button icon. string "form-date"
buttonText button-text Button text. string undefined
buttonUrl button-url Button url. string undefined
description description Description. string undefined
email email Email. string undefined
image image Image. string undefined
margin margin Controls the margin of the component. "auto" | "none" "auto"
name name Name. string undefined
phone phone Phone. string undefined
theme theme Theme. "" | "default" | "turva" ""

Usage #

This section includes guidelines for designers and developers about the usage of this component in different contexts.

When to use #

  • When there is a need to present contact details.

When not to use #

  • When you want something more customized than what the component here offers.

Accessibility #

This component has been validated to meet the WCAG 2.1 AA accessibility guidelines. You can find additional information regarding accessibility of this component below.


Integration

For integration, event and theming guidelines, please see Using Components. This documentation explains how to implement and use Duet’s components across different technologies like Angular, React or Vanilla JavaScript.

Integration guidelines


Tutorials

Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:

Tutorials

Building Layouts

Tutorials

Using CLI Tools

Tutorials

Creating Custom Patterns

Tutorials

Server Side Rendering

Tutorials

Sharing Prototypes

Tutorials

Usage With Markdown


Troubleshooting

If you experience any issues while using a component, please head over to the Support page for more guidelines and help.