Blokd UIDocsv1.1.0

Docs / Component reference

Article Preview

Give a published story a headline link, byline and reading time. Use featured styling for the lead story and set the heading level to fit the surrounding page. Your app supplies the date label and decides which story leads.

Article preview example

Install

sh
npx @fierst/blokd-ui@1.1.0 add article-preview

Registry dependencies: theme.

Exports from ./ui/article-preview: ArticlePreview.

Download the registry source for article-preview 1.1.0.

API contracts

ts
export function ArticlePreview(props: {
  title: string;
  href: string;
  summary?: string;
  eyebrow?: string;
  featured?: boolean;
  headingLevel?: 2 | 3;
  author?: string;
  published?: { dateTime: string; label: string };
  readingTime?: string;
})