@nnc-digital/nnc-design-system
Version:
Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.
24 lines (23 loc) • 502 B
TypeScript
export interface NewsArticleFeaturedBlockProps {
/**
* Array of news article data
*/
articles: Array<NewsArticleProps>;
/**
* Optionally do not display the title
*/
withoutTitle?: boolean;
/**
* Optionally add a button to view all news
*/
viewAllLink?: string;
}
export interface NewsArticleProps {
id: string;
url: string;
title: string;
date: number;
image720x405: string;
image72x41: string;
imageAltText?: string;
}