PostEntry
One post in any list of posts as composable parts (kind, date, title and its link, lead or full body, meta row) laid out in one of three layouts.
Notes toward a slower web
What a page owes the reader who stays on it longer than a minute.
View code
import { LinkHost, PostEntry, TagList } from "@sdxc/ui/blog";
<PostEntry featured>
<PostEntry.Kind>
<PostEntry.KindLink href="/?type=essays">Essay</PostEntry.KindLink>
</PostEntry.Kind>
<PostEntry.Title>
<PostEntry.TitleLink href="/essays/slow-web">Notes toward a slower web</PostEntry.TitleLink>
</PostEntry.Title>
<PostEntry.Lead>What a page owes the reader who stays on it longer than a minute.</PostEntry.Lead>
<PostEntry.Meta>
<time datetime="2026-11-12">Nov 12, 2026</time>
<span>12 min read</span>
</PostEntry.Meta>
</PostEntry>
<PostEntry layout="margin">
<PostEntry.Kind>
<PostEntry.KindLink href="/?type=links">Link</PostEntry.KindLink>
</PostEntry.Kind>
<PostEntry.Title>
<PostEntry.TitleLink href="https://www.example.com/rfc" rel="noreferrer">
How caches agree on freshness
</PostEntry.TitleLink>{" "}
<LinkHost href="https://www.example.com/rfc" variant="chip" />
</PostEntry.Title>
<PostEntry.Lead>The clearest account of revalidation I have read.</PostEntry.Lead>
<PostEntry.Meta>
<time datetime="2026-11-08">Nov 8, 2026</time>
<TagList>
<TagList.Tag href="/tags/http">http</TagList.Tag>
</TagList>
</PostEntry.Meta>
</PostEntry>
<PostEntry layout="row">
<PostEntry.Date date="2026-11-03" format={{ month: "short", day: "numeric" }} />
<PostEntry.Kind>Note</PostEntry.Kind>
<PostEntry.Title>
<PostEntry.TitleLink href="/notes/cache-keys">Cache keys are an API</PostEntry.TitleLink>
</PostEntry.Title>
<PostEntry.Meta>
<span>2 min</span>
</PostEntry.Meta>
</PostEntry>
<PostEntry layout="row">
<PostEntry.Date date="2026-10-29" format={{ month: "short", day: "numeric" }} />
<PostEntry.Kind>Term</PostEntry.Kind>
<PostEntry.Title>
<PostEntry.TitleLink href="/glossary/swr">Stale-while-revalidate</PostEntry.TitleLink>
</PostEntry.Title>
<PostEntry.Meta>
<span>Definition</span>
</PostEntry.Meta>
</PostEntry>Installation
An ordinary dependency: install it, import the theme once, and import the component where it is used.
npm add @sdxc/ui remiximport "@sdxc/ui/theme.css";Usage
import { PostEntry } from "@sdxc/ui/blog";Renders the entry as an <article>; a margin or row entry is its own size container, so
its layout answers to the column the list gives it, and a stack entry sizes from its content.
Restyle its parts by setting PostEntry.CustomProperties on the entry.
Composition
The parts the component publishes, each a static property of the host.
PostEntryPostEntry.KindThe post's kind as a small upper-case label.PostEntry.KindLinkThe kind's link, in the kind's colour and underlined under the pointer, so the label reads as type until a reader reaches for it.PostEntry.TitleThe post's title in the heading element matching the nearest ambient heading level,<h1>where nothing supplies one; the size follows the entry's layout and featured state.PostEntry.TitleLinkThe title's link, reading as type until hovered, when it underlines in the brand colour.PostEntry.DateThe day the post went out as a<time>, inlocaleand UTC.PostEntry.LeadThe post's summary, a paragraph in the body colour that a reader picks the post by.PostEntry.BodyThe post shown in full where it is listed, such as a short note; it holds any rendered content, aTypesetincluded, at the entry's measure.PostEntry.MetaThe facts under a post (date, reading time, host, tags) as one wrapping row, each child element an item and every item after the first led by a middot.
Examples
<PostEntry featured>
<PostEntry.Title>The slow web</PostEntry.Title>
</PostEntry>Props
Read from the component's own types, so every prop, every default and every allowed value is listed.
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
layout | "stack" | "margin" | "row" | — | No | |
featured | boolean | — | No | Sets the entry on a tinted brand surface with a larger title, for a pinned post. |
Also accepts everything in TagProps<"article">.
PostEntry.Kind
Also accepts everything in TagProps<"p">.
PostEntry.KindLink
PostEntry.Title
Also accepts everything in TagProps<"h1">.
PostEntry.TitleLink
PostEntry.Date
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
date | string | — | Yes | The day, YYYY-MM-DD, read as a calendar date in UTC. |
locale | string | — | No | |
format | Intl.DateTimeFormatOptions | — | No | |
children | RemixNode | — | No | Replaces the formatted day as the visible text; datetime still carries date. |
Also accepts everything in Omit<TagProps<"time">, "datetime">.
PostEntry.Lead
Also accepts everything in TagProps<"p">.
PostEntry.Body
Also accepts everything in TagProps<"div">.
PostEntry.Meta
Also accepts everything in TagProps<"div">.
Types
| Name | Values | What it decides |
|---|---|---|
Layout | "stack" | "margin" | "row" | stack sets every part in one column; margin moves the kind into a narrow column on the left once the entry is wide enough; row sets kind, title and meta on one dense line, like a row of an index, with any lead or body under the title. |