description |
Minified version of the VC Thumbnail for displaying a verifiable credential |
{% embed url="https://627179acf7d591004aeca143-mtzhuexrnc.chromatic.com/iframe.html?args=&globals=backgrounds.value:!hex(F8F8F8)&id=minivcthumbnail--mini-vc-thumbnail-test&viewMode=story" %}
import { MiniVCThumbnail } from '@learncard/react';
const handleOnClick = () => {};
<MiniVCThumbnail
title="Hello World!"
createdAt="June, 3 2022"
issuerImage="https://issuerimage.png"
badgeImage="https://badgeimage.png"
className="customClass"
onClick={handleOnClick}
/>
{% hint style="info" %}
Update the fields below, to see live changes! 🚀
try: issuerImage: ""
{% endhint %}
{% embed url="https://627179acf7d591004aeca143-mtzhuexrnc.chromatic.com/iframe.html?args=&globals=backgrounds.value:!hex(F8F8F8)&id=minivcthumbnail--mini-vc-thumbnail-test&viewMode=docs" %}
Description |
Thumbnail title |
Type |
string | undefined |
Default |
undefined |
Description |
Credential issue date |
Type |
string | undefined |
Default |
undefined |
Description |
Credential issuer image |
Type |
string | undefined |
Default |
undefined |
Description |
Open badge image |
Type |
string | undefined |
Default |
undefined |
|
|
Description |
Custom css class |
Type |
string | undefined |
Default |
"" |
Description |
Custom onClick handler |
Type |
() => void | undefined |
Default |
() => {} |