23 lines
640 B
TypeScript
23 lines
640 B
TypeScript
/**
|
|
* Type for LinkCard component
|
|
* @module utils/types/linkCard
|
|
*/
|
|
|
|
/**
|
|
* Interface that defines property for LinkCard component
|
|
* @property {string} title title of link
|
|
* @property {string} description description of link
|
|
* @property {string} link link itself
|
|
* @property {string=} imagePath optional path to image to display with
|
|
* @example
|
|
* <LinkCard title="Test Article" description="Test entry for the website." link="/blog/test" image-path="blog-cover-image.jpg" />
|
|
*/
|
|
interface LinkCardProperty {
|
|
title: string;
|
|
description: string;
|
|
link: string;
|
|
imagePath?: string;
|
|
}
|
|
|
|
export type { LinkCardProperty };
|