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
| Prop | Type | Default | What it does |
|---|---|---|---|
locale | 'en' | 'zh-CN' | 'es' | 'ja' | 'en' | Language of the built-in text, the dates and the sample releases. |
releases | Array<{ id, version, date, title?, entries: Array<{ tag: 'new' | 'improved' | 'fixed', text }> }> | sample releases | The releases, newest first. An empty array shows the empty state. |
visible | number | 3 | How many releases show before “Show older”. |
defaultTag | 'all' | 'new' | 'improved' | 'fixed' | 'all' | The filter selected at first. |
loading / error | boolean / boolean | string | false | Show 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. |
labels | object | — | Replaces any built-in text (keys as in copy.js). |
className | string | — | 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.