# PostStream

> A list of posts ruled into sections, such as months or years, whose headings stick to the top of the viewport while their section scrolls past, so a reader deep in a long stream always sees which stretch of time they are in.

```ts
import { PostStream } from "@sdxc/ui/blog";
```

Renders the stream as a column. Entries placed directly inside are divided by hairlines;
PostStream.Section children group them under headings instead. Headings stick
under `--ui-post-stream-offset`, which a page with a sticky bar sets to its height; the
rest of PostStream.CustomProperties restyle headings and hairlines.

## Examples

```tsx
<PostStream>
	<PostStream.Section id="2026-11">
		<PostStream.Heading>November 2026</PostStream.Heading>
		<PostEntry>…</PostEntry>
	</PostStream.Section>
</PostStream>
```

```tsx
<PostStream>{posts.map((post) => <PostEntry>…</PostEntry>)}</PostStream>
```

## Props

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


### PostStream.Section

A headed group of entries, named by its PostStream.Heading.

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


### PostStream.Heading

A section's label at the section's heading level, sticking to the top for as long as its section is on screen, on the page's background, so entries scroll under it.

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

