Changelog: dated release list
A dated release list with a category label, description and optional link for each update.
pnpm dlx shadcn@latest add @haze/changelog-release-list---
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>When to use
- Publishing a concise history of product changes
- Each release needs a date and a short explanation
When not to use
- The content describes a planned sequence rather than releases; use process-numbered-steps
Installation
Add the Haze registry to components.json once, then install Changelog: dated release list with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.
pnpm dlx shadcn@latest add @haze/changelog-release-listnpx shadcn@latest add @haze/changelog-release-listyarn dlx shadcn@latest add @haze/changelog-release-listbunx --bun shadcn@latest add @haze/changelog-release-listFirst time? Registry and theme setup
1. Add to components.json:
{
"registries": {
"@haze": "http://localhost:4329/r/{name}.json"
}
}2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| id | string | "changelog-release-list" | Section ID prefix; supply a distinct value for repeated instances. |
| eyebrow | string | "Changelog" | Label above the title. |
| title | string | demo heading | Heading for the release history. |
| description | string | demo copy | Introduction to the release list. |
| headingLevel | 1 | 2 | 3 | 2 | Heading level; release headings follow one level below. |
| releases | { date: string; dateLabel: string; label: string; title: string; description: string; href?: string }[] | 3 demo releases | Dated entries in display order; date is a machine-readable ISO date. |
| class | string | – | Additional classes on the section. |
Keyboard interactions
- Tab
- Move between release links when URLs are supplied.
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.
Notes for AI
Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.
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": "http://localhost:4329/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: http://localhost:4329/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.
Dependencies
- npm: @lucide/astro
- @haze/utils
- @haze/theme (one-time setup)
Source · Original Haze UI work.