The newest few stories: one lead and up to three more.
Three is a cap, and the list is sliced. A home page news block that grows with the feed pushes everything below it off the page, and the point of this section is a glance rather than an archive.
The lead's picture goes through pubPicture, which labels a generated image unless told otherwise, and links the frame with aria-hidden so the headline stays the single announced link.
import { NewsSection } from '@redrob-labs/ui';
| Prop | Type | Notes |
|---|---|---|
lead |
NewsItem |
The lead story. Its image, when present, sets the two-column layout. |
items |
NewsItem[] |
At most three are rendered. |
title |
React.ReactNode |
|
href |
string |
|
allLabel |
React.ReactNode |
|
lang |
string |
|
id |
string |
|
className |
string |