Skip to content
English

Usage

import { Changelog } from './Changelog.jsx'

// Without onSubscribe an address is "subscribed" after a short wait. Wire it to your mailing list:
<Changelog
  locale="en"
  releases={releases}          // [{ id, version, date: 'YYYY-MM-DD', title?, entries: [{ tag: 'new' | 'improved' | 'fixed', text }] }]
  loading={!releases}
  error={releasesError}
  onRetry={reloadReleases}
  onSubscribe={async (email) => (await addSubscriber(email)).ok}
/>

Props

PropTypeDefaultWhat it does
locale'en' | 'zh-CN' | 'es' | 'ja''en'Language of the built-in text, the dates and the sample releases.
releasesArray<{ id, version, date, title?, entries: Array<{ tag: 'new' | 'improved' | 'fixed', text }> }>sample releasesThe releases, newest first. An empty array shows the empty state.
visiblenumber3How many releases show before “Show older”.
defaultTag'all' | 'new' | 'improved' | 'fixed''all'The filter selected at first.
loading / errorboolean / boolean | stringfalseShow the skeleton while loading, or the error banner with a retry; a string replaces its sentence.
onSubscribe(email) => Promise<boolean | void>—Subscribes an address. Resolve false to keep the form and mark the field.
onFilter / onRetry(tag) => void / () => void—The tag filter changed; the error banner’s retry was pressed.
labelsobject—Replaces any built-in text (keys as in copy.js).
classNamestring—Added to the root section.

Add it to your project

Copy the prompt into Codex or Claude Code. The agent reads the published source, shows you what it will write and adds the block together with the components it is built from.

Changelog.jsxchangelog.csscopy.jskit.jsxkit.cssui/base-button/ui/empty-state/ui/alert-banner/ui/success-check/ui/text-input/ui/skeleton-shimmer/tokens.cssREADME.md

The block, its stylesheet and text, the shared kit, the components it uses and tokens.css install together into one folder.