# 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, so the same parts serve a stacked feed, a log with the kind in a margin column, or a dense one-line index.

```ts
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.

## Examples

```tsx
<PostEntry layout="margin">
	<PostEntry.Kind>Note</PostEntry.Kind>
	<PostEntry.Title>
		<PostEntry.TitleLink href="/notes/cache-keys">Cache keys are an API</PostEntry.TitleLink>
	</PostEntry.Title>
	<PostEntry.Lead>Why a key's shape outlives the code that wrote it.</PostEntry.Lead>
	<PostEntry.Meta>
		<time datetime="2026-11-12">Nov 12</time>
		<span>4 min read</span>
	</PostEntry.Meta>
</PostEntry>
```

```tsx
<PostEntry featured>
	<PostEntry.Title>The slow web</PostEntry.Title>
</PostEntry>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `layout?` | `"stack" \| "margin" \| "row"` |  |
| `featured?` | `boolean` | Sets the entry on a tinted brand surface with a larger title, for a pinned post. |

Also accepts everything in `TagProps<"article">`.


### PostEntry.Kind

The post's kind as a small upper-case label.

Also accepts everything in `TagProps<"p">`.


### PostEntry.KindLink

The 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.

Takes no props of its own.

### PostEntry.Title

The 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.

Also accepts everything in `TagProps<"h1">`.


### PostEntry.TitleLink

The title's link, reading as type until hovered, when it underlines in the brand colour.

Takes no props of its own.

### PostEntry.Date

The day the post went out as a `<time>`, in `locale` and UTC.

| Prop | Type | Description |
| --- | --- | --- |
| `date` | `string` | The day, `YYYY-MM-DD`, read as a calendar date in UTC. |
| `locale?` | `string` |  |
| `format?` | `Intl.DateTimeFormatOptions` |  |
| `children?` | `RemixNode` | Replaces the formatted day as the visible text; `datetime` still carries `date`. |

Also accepts everything in `Omit<TagProps<"time">, "datetime">`.


### PostEntry.Lead

The post's summary, a paragraph in the body colour that a reader picks the post by.

Also accepts everything in `TagProps<"p">`.


### PostEntry.Body

The post shown in full where it is listed, such as a short note; it holds any rendered content, a `Typeset` included, at the entry's measure.

Also accepts everything in `TagProps<"div">`.


### PostEntry.Meta

The 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.

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. |
