# Changelog block

A grouped product changelog with native dates, typed change records, controlled version filters, and controlled release details.

Access: pro. Category: Blocks. Kind: composite.

## When to use

- Use it when a page needs a grouped product changelog with native dates, typed change records, controlled version filters, and controlled release details.
- Choose it inside an authenticated product surface when the host application owns routing, persistence, and service calls.

## Alternatives

- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than changelog block.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Changelog block

```sh
npx shadcn@latest add @tidal-pro/changelog-block
```

Stylesheets: `components/ui/tidal.css`, `components/ui/changelog-block.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/changelog-block.css";
import{TidalChangelogBlock}from"./components/ui/changelog-block";
export default()=><div className="tidal-scope"><TidalChangelogBlock releases={[{id:"example",version:"value",title:"Demo",publishedAt:"value",dateLabel:"Demo",changes:[{id:"example",kind:"added",title:"Demo"}]}]} title={"Demo"}/></div>;
```

## Structured props

- `TidalChangelogBlock.releases: ReadonlyArray<TidalChangelogRelease>`: Required releases value accepted by this exported component.
- `TidalChangelogBlock.title: ReactNode`: Required title value accepted by this exported component.
- `TidalChangelogBlock.activeFilter?: string | undefined`: Optional active filter value accepted by this exported component.
- `TidalChangelogBlock.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalChangelogBlock.emptyMessage?: ReactNode` (default "No releases to display."): Optional empty message value accepted by this exported component.
- `TidalChangelogBlock.expandedReleaseIds?: ReadonlySet<string> | undefined` (default EMPTY_IDS): Optional expanded release ids value accepted by this exported component.
- `TidalChangelogBlock.eyebrow?: ReactNode` (default "Changelog"): Optional eyebrow value accepted by this exported component.
- `TidalChangelogBlock.filterLabel?: string | undefined` (default "Filter releases"): Optional filter label value accepted by this exported component.
- `TidalChangelogBlock.filters?: ReadonlyArray<TidalChangelogFilter> | undefined` (default []): Optional filters value accepted by this exported component.
- `TidalChangelogBlock.headerAction?: ReactNode`: Optional header action value accepted by this exported component.
- `TidalChangelogBlock.headingLevel?: TidalChangelogHeadingLevel | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalChangelogBlock.labels?: TidalChangelogLabels | undefined`: Optional labels value accepted by this exported component.
- `TidalChangelogBlock.motionKey?: string | number | undefined` (default 0): Changes the finite entrance animation name without remounting controls.
- `TidalChangelogBlock.onExpandedChange?: ((releaseId: string, expanded: boolean) => void) | undefined`: Callback invoked when the expanded change interaction is proposed.
- `TidalChangelogBlock.onFilterChange?: ((filterId: string) => void) | undefined`: Callback invoked when the filter change interaction is proposed.
- `TidalChangelogBlock.releaseHeadingLevel?: TidalChangelogReleaseHeadingLevel | undefined`: Optional release heading level value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/changelog-block.tsx) | [Manifest](https://tidalui.com/examples/changelog-block.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
"use client";

import "./components/ui/tidal.css";

import { useMemo, useState } from "react";

import { RotateCcw } from "lucide-react";

import { TidalChangelogBlock, type TidalChangelogRelease } from "./components/ui/changelog-block";

import "./components/ui/changelog-block.css";



const tidalExampleStyles = ".tidal-scope .changelog-demo,\n.tidal-scope .changelog-demo * {\n  box-sizing: border-box;\n}\n\n.tidal-scope .changelog-demo {\n  width: 100%;\n  min-width: 0;\n  padding: clamp(12px, 3.4vw, 38px);\n  color: var(--t-ink);\n  background:\n    linear-gradient(var(--t-border) 1px, transparent 1px),\n    linear-gradient(90deg, var(--t-border) 1px, transparent 1px),\n    var(--t-subtle);\n  background-size: 26px 26px;\n  border-radius: 22px;\n  container: changelog-demo / inline-size;\n}\n\n.tidal-scope .changelog-demo-shell {\n  display: grid;\n  width: 100%;\n  max-width: 1020px;\n  min-width: 0;\n  gap: 13px;\n  margin: 0 auto;\n}\n\n.tidal-scope .changelog-demo .tidal-changelog {\n  margin: 0 auto;\n}\n\n.tidal-scope .changelog-demo .tidal-changelog-header-action svg {\n  flex: none;\n}\n\n.tidal-scope .changelog-demo-status {\n  margin: 0;\n  padding: 0 5px;\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.55;\n  text-align: center;\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .changelog-demo-note {\n  width: 100%;\n  max-width: 920px;\n  min-width: 0;\n  margin: 0 auto;\n  padding: 15px 17px;\n  color: var(--t-ink);\n  background: var(--t-surface);\n  border: 1px solid var(--t-border);\n  border-radius: 18px;\n  scroll-margin-top: 16px;\n}\n\n.tidal-scope .changelog-demo-note > span,\n.tidal-scope .changelog-demo-note > strong,\n.tidal-scope .changelog-demo-note > p {\n  display: block;\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .changelog-demo-note > span {\n  color: var(--t-muted);\n  font-size: 11px;\n  font-weight: 700;\n  letter-spacing: 0.12em;\n  line-height: 1.4;\n}\n\n.tidal-scope .changelog-demo-note > strong {\n  margin-top: 5px;\n  font-size: 13px;\n  font-weight: 650;\n  line-height: 1.4;\n}\n\n.tidal-scope .changelog-demo-note > p {\n  margin: 4px 0 0;\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.6;\n}\n\n@container changelog-demo (max-width: 440px) {\n  .tidal-scope .changelog-demo {\n    padding: 7px;\n    background-size: 18px 18px;\n    border-radius: 18px;\n  }\n}";

type VersionFilter = "all" | "2.4" | "2.3";

const RELEASES: readonly TidalChangelogRelease[] = [
  {
    id: "2.4.0",
    version: "v2.4.0",
    title: "Faster project review",
    publishedAt: "2026-10-08",
    dateLabel: "October 8, 2026",
    summary:
      "The fictional Orbit Desk sample now keeps review notes beside the work they describe.",
    changes: [
      {
        id: "review-queue",
        kind: "added",
        title: "Review queue",
        description: "Collect open decisions in one local view.",
        href: "#changelog-demo-notes",
      },
      {
        id: "search-order",
        kind: "improved",
        title: "Project search order",
        description: "Recent exact matches appear first in the sample.",
      },
      {
        id: "focus-return",
        kind: "fixed",
        title: "Dialog focus return",
        description: "Closing a sample review returns focus to its trigger.",
      },
    ],
    details: (
      <div>
        <strong>Local migration note</strong>
        <p>
          Existing fictional projects need no action. The review queue appears
          only in this rendered sample.
        </p>
      </div>
    ),
    link: {
      href: "#changelog-demo-notes",
      label: "Read sample note",
    },
  },
  {
    id: "2.3.1",
    version: "v2.3.1",
    title: "Clearer task status",
    publishedAt: "2026-09-24",
    dateLabel: "September 24, 2026",
    summary:
      "Status text and shape now stay readable across light and dark sample surfaces.",
    changes: [
      {
        id: "status-copy",
        kind: "improved",
        title: "Status labels",
        description: "Every state uses a literal word alongside its marker.",
      },
      {
        id: "empty-project",
        kind: "fixed",
        title: "Empty project layout",
        description:
          "The first-action control remains visible at narrow widths.",
      },
    ],
    details: (
      <p>
        This example describes interface behavior only. It does not update a
        real project or account.
      </p>
    ),
  },
  {
    id: "2.3.0",
    version: "v2.3.0",
    title: "Shared project briefs",
    publishedAt: "2026-09-10",
    dateLabel: "September 10, 2026",
    summary:
      "A concise brief preview joins the fictional project planning sample.",
    changes: [
      {
        id: "brief-preview",
        kind: "added",
        title: "Brief preview",
        description: "Review scope, owner, and next step in one panel.",
      },
      {
        id: "legacy-label",
        kind: "removed",
        title: "Legacy priority label",
        description: "The sample now uses one consistent priority vocabulary.",
      },
    ],
    details: (
      <p>
        The removed label refers only to the fictional sample data shown here.
      </p>
    ),
  },
];

const FILTERS = [
  { id: "all", label: "All versions", count: 3 },
  { id: "2.4", label: "Version 2.4", count: 1 },
  { id: "2.3", label: "Version 2.3", count: 2 },
] as const;

export function ChangelogBlockDemo() {
  const [filter, setFilter] = useState<VersionFilter>("all");
  const [expandedIds, setExpandedIds] = useState<ReadonlySet<string>>(
    () => new Set(["2.4.0"]),
  );
  const [motionKey, setMotionKey] = useState(0);
  const [message, setMessage] = useState(
    "Showing all three fictional releases. Version 2.4 details are open.",
  );

  const visibleReleases = useMemo(
    () =>
      filter === "all"
        ? RELEASES
        : RELEASES.filter((release) => release.id.startsWith(filter)),
    [filter],
  );

  function selectFilter(nextFilter: string) {
    const next = nextFilter as VersionFilter;
    setFilter(next);
    setMessage(
      next === "all"
        ? "Showing all three fictional releases."
        : `Showing fictional version ${next} releases.`,
    );
  }

  function setReleaseExpanded(releaseId: string, expanded: boolean) {
    setExpandedIds((current) => {
      const next = new Set(current);
      if (expanded) next.add(releaseId);
      else next.delete(releaseId);
      return next;
    });
    setMessage(
      `${releaseId} sample details ${expanded ? "opened" : "closed"}.`,
    );
  }

  function replayMotion() {
    setMotionKey((current) => current + 1);
    setMessage("The finite entrance sequence replayed in this local preview.");
  }

  return (
    <section className="changelog-demo" aria-label="Changelog block preview">
      <div className="changelog-demo-shell">
        <TidalChangelogBlock
          title="Product updates"
          eyebrow={null}
          description="Release notes for a fictional product. Filter versions or open a release for details."
          releases={visibleReleases}
          filters={FILTERS}
          activeFilter={filter}
          onFilterChange={selectFilter}
          filterLabel="Filter fictional release versions"
          expandedReleaseIds={expandedIds}
          onExpandedChange={setReleaseExpanded}
          motionKey={motionKey}
          headerAction={
            <button type="button" onClick={replayMotion}>
              <RotateCcw aria-hidden="true" size={15} />
              Replay entrance
            </button>
          }
        />

        <p
          className="changelog-demo-status"
          role="status"
          aria-live="polite"
          aria-atomic="true"
        >
          {message}
        </p>

        <aside id="changelog-demo-notes" className="changelog-demo-note">
          <span>SAMPLE NOTE</span>
          <strong>Review queue</strong>
          <p>
            This anchor shows a real local destination. No release, account,
            request, subscription, or stored record is created.
          </p>
        </aside>
      </div>
    </section>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <ChangelogBlockDemo />
    </div>
  );
}

```

## Gotchas

- The host application owns data, validation, persistence, navigation, and service side effects described by this API.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Tab and Shift+Tab follow the component's native focus order."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

title and consumer-owned releases are required. Each release has a stable id, version, title, native publishedAt/dateLabel, typed added|improved|fixed|removed changes, and optional summary, details, details-button props/ref, and native release link. Each change has a stable id, kind, title, optional description, and optional native href/link props/ref; an explicit empty href remains an anchor. Optional filters accept stable ids, ReactNode labels/counts, native button props/refs, activeFilter and onFilterChange. Without the callback, filter labels render statically. expandedReleaseIds and onExpandedChange form a controlled disclosure contract; without the callback, supplied details stay visible without a false control. Optional localized labels, heading levels, eyebrow, description, headerAction, emptyMessage and motionKey remain consumer-owned. The section forwards native attributes/ref. Native handlers run before higher callbacks and preventDefault suppresses the higher action. Controls are44px, long content wraps, logical layout supports RTL, entrance/detail motion is finite, and reduced motion is static. Consumers own filtering, expansion, navigation, data, effects and replay state. The component performs no request, storage, timer, routing, analytics or release mutation.
