# Changelog: dated release list

> A dated release list with a category label, description and optional link for each update.

- Kind: block · Category: Changelog · Interactivity: native
- Install: `npx shadcn@latest add @haze/changelog-release-list`
- File: `src/components/haze/blocks/changelog-release-list.astro`
- npm dependencies: @lucide/astro
- Registry dependencies: @haze/utils
- Docs page: https://hazeui.com/blocks/changelog-release-list

## Use when
- Publishing a concise history of product changes
- Each release needs a date and a short explanation

## Avoid when
- The content describes a planned sequence rather than releases; use process-numbered-steps

## Alternatives
- [process-numbered-steps](https://hazeui.com/blocks/process-numbered-steps.md)

## Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| id | `string` | "changelog-release-list" | no | Section ID prefix; supply a distinct value for repeated instances. |
| eyebrow | `string` | "Changelog" | no | Label above the title. |
| title | `string` | demo heading | no | Heading for the release history. |
| description | `string` | demo copy | no | Introduction to the release list. |
| headingLevel | `1 \| 2 \| 3` | 2 | no | Heading level; release headings follow one level below. |
| releases | `{ date: string; dateLabel: string; label: string; title: string; description: string; href?: string }[]` | 3 demo releases | no | Dated entries in display order; date is a machine-readable ISO date. |
| class | `string` |  | no | Additional classes on the section. |

## Accessibility
- Release dates use time elements and the entries remain an ordered list.
- Optional links use descriptive release titles, with decorative arrow icons hidden from assistive technology.
- Key Tab: Move between release links when URLs are supplied.

## Agent prompts

### Install and use

Install the Haze UI block "Changelog: dated release list" with `npx shadcn@latest add @haze/changelog-release-list`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "https://hazeui.com/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import ChangelogReleaseList from "@/components/haze/blocks/changelog-release-list.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: https://hazeui.com/blocks/changelog-release-list.md

### Customize with real content

Adapt the Haze changelog-release-list block for our product. Replace the demo values of these props with our real content: id, eyebrow, title, description, headingLevel, releases, class. Keep the layout, the heading level rules and these accessibility details: Release dates use time elements and the entries remain an ordered list. Optional links use descriptive release titles, with decorative arrow icons hidden from assistive technology. Do not add raw color classes; use the Haze tokens.

### Choose the right block

Before using changelog-release-list, check it fits: use it when publishing a concise history of product changes; each release needs a date and a short explanation. Avoid it when the content describes a planned sequence rather than releases; use process-numbered-steps. Alternatives: @haze/process-numbered-steps.

## Example requests that should lead here
- Show a product changelog with dates, release labels and short descriptions

## Source

```astro
---
import { ArrowUpRight } from "@lucide/astro";
import { cn } from "../../../lib/haze/utils";

interface Props {
  id?: string;
  eyebrow?: string;
  title?: string;
  description?: string;
  headingLevel?: 1 | 2 | 3;
  releases?: { date: string; dateLabel: string; label: string; title: string; description: string; href?: string }[];
  class?: string;
}

const {
  id = "changelog-release-list",
  eyebrow = "Changelog",
  title = "Small improvements, shipped often",
  description = "A running record of the updates that make everyday work a little easier.",
  headingLevel = 2,
  releases = [
    { date: "2026-11-12", dateLabel: "November 12, 2026", label: "New", title: "A clearer view of upcoming work", description: "Group projects by milestone and see what needs attention before the week begins." },
    { date: "2026-10-28", dateLabel: "October 28, 2026", label: "Improved", title: "A quieter notification inbox", description: "Related updates now arrive together, with a summary you can scan at a glance." },
    { date: "2026-10-08", dateLabel: "October 8, 2026", label: "New", title: "Share a project update", description: "Turn the latest activity into a short update for everyone following a project." },
  ],
  class: className,
} = Astro.props;
const Heading = ({ 1: "h1", 2: "h2", 3: "h3" } as const)[headingLevel];
const ReleaseHeading = ({ 1: "h2", 2: "h3", 3: "h4" } as const)[headingLevel];
---

<section aria-labelledby={`${id}-title`} class={cn("bg-background px-6 py-20 sm:py-24", className)}>
  <div class="mx-auto max-w-6xl">
    <div class="max-w-2xl">
      <p class="text-[0.6875rem]/4 font-medium tracking-wider text-muted-foreground uppercase">{eyebrow}</p>
      <Heading id={`${id}-title`} class="mt-3 text-3xl/9 font-semibold tracking-tight text-balance text-foreground sm:text-4xl/11">{title}</Heading>
      <p class="mt-4 text-base/7 text-pretty text-muted-foreground">{description}</p>
    </div>
    <ol class="mt-12 border-t border-border">
      {releases.map((release) => (
        <li class="grid gap-4 border-b border-border py-7 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-8 sm:py-9">
          <time datetime={release.date} class="text-[0.8125rem]/5 font-medium text-muted-foreground">{release.dateLabel}</time>
          <article class="min-w-0 max-w-2xl">
            <span class="inline-flex rounded-sm bg-foreground/5 px-2 py-1 text-[0.6875rem]/4 font-medium text-foreground inset-ring inset-ring-frame">{release.label}</span>
            <ReleaseHeading class="mt-3 text-lg/7 font-semibold tracking-tight text-foreground">
              {release.href ? <a href={release.href} class="rounded-sm underline-offset-4 hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring">{release.title}<ArrowUpRight aria-hidden="true" class="ml-1 inline size-4" /></a> : release.title}
            </ReleaseHeading>
            <p class="mt-2 text-sm/6 text-muted-foreground">{release.description}</p>
          </article>
        </li>
      ))}
    </ol>
  </div>
</section>
```
