AssetItem Tracking
import { AssetItem } from '@bbc/front-end-kit/vue/showpad'
Renders an asset item based on a Showpad asset object. When clicked, it opens Showpad's assetViewer using the 'openAssetViewer' method.
Getting started
<template>
<AssetItem :asset={ showpadAsset } />
</template>
Tracking
Asset links are tracked automatically by Showpad.
So it does not support the conventional tracking properties other tracked component have.
API
Properties
asset *
Asset object from config or other Showpad related asset sources that will be used to render the component's contents.
Values: Showpad asset
Required: yes
Slots
default
Assetitem's anchor contents (which is the root element)
Properties
asset: The Showpad asset object passed via theassetprop.