Changelog 1
Release timeline with versions, dates and New / Improved / Fixed tags.
01 / 01
Installation
Run this in a project that already uses shadcn/ui. The CLI adds the block, its components and npm dependencies.
pnpm dlx shadcn@latest add https://ui.sumansharma.info.np/r/changelog-1.jsonPrefer to iterate with AI?Open in
Usage
The CLI writes the block to components/changelog-1.tsx. Import it anywhere:
Loading...
Source
The CLI writes this component to components/changelog-1.tsx.
import Link from 'next/link'
type Tag = 'New' | 'Improved' | 'Fixed'
const tagStyles: Record<Tag, string> = {
New: 'bg-emerald-500/10 text-emerald-700 ring-emerald-500/20 dark:text-emerald-400',
Improved: 'bg-sky-500/10 text-sky-700 ring-sky-500/20 dark:text-sky-400',
Fixed: 'bg-amber-500/10 text-amber-700 ring-amber-500/20 dark:text-amber-400',
}
const releases: { version: string; date: string; title: string; summary: string; changes: { tag: Tag; text: string }[] }[] = [
{
version: 'v2.4.0',
date: 'Nov 14, 2026',
title: 'Command menu and keyboard shortcuts',
summary: 'Press ⌘K anywhere to jump between projects, run actions and search docs.',
changes: [
{ tag: 'New', text: 'Global command menu with fuzzy search.' },
{ tag: 'New', text: 'Customisable keyboard shortcuts in settings.' },
{ tag: 'Improved', text: 'Sidebar now remembers its collapsed state.' },
],
},
{
version: 'v2.3.2',
date: 'Oct 30, 2026',
title: 'Faster dashboards',
summary: 'Charts now stream in as data arrives instead of waiting for every query.',
changes: [
{ tag: 'Improved', text: 'Dashboard load time down 48% on large workspaces.' },
{ tag: 'Fixed', text: 'Date range picker skipping the last day of the month.' },
],
},
{
version: 'v2.3.0',
date: 'Oct 12, 2026',
title: 'Team roles and audit log',
summary: 'Give people exactly the access they need, and see who changed what.',
changes: [
{ tag: 'New', text: 'Viewer, editor and admin roles per project.' },
{ tag: 'New', text: 'Exportable audit log for every workspace.' },
{ tag: 'Fixed', text: 'Invites expiring before the stated seven days.' },
],
},
]
export default function Changelog() {
return (
<section className="py-16 md:py-24">
<div className="mx-auto max-w-4xl px-6">
<div className="max-w-xl">
<h2 className="text-4xl font-semibold lg:text-5xl">Changelog</h2>
<p className="text-muted-foreground mt-4">
New features, improvements and fixes, shipped every week.{' '}
<Link
href="#"
className="text-foreground underline underline-offset-4">
Subscribe via RSS
</Link>
</p>
</div>
<ol className="mt-16">
{releases.map((release) => (
<li
key={release.version}
className="relative grid gap-4 pb-14 last:pb-0 md:grid-cols-[10rem_minmax(0,1fr)] md:gap-10">
<div className="md:text-right">
<time className="text-muted-foreground text-sm md:sticky md:top-8">{release.date}</time>
</div>
<div className="relative border-l pl-8 md:pl-10">
<span
aria-hidden
className="bg-background ring-border absolute -left-[5px] top-1.5 size-2.5 rounded-full ring-2"
/>
<span className="text-muted-foreground font-mono text-xs">{release.version}</span>
<h3 className="mt-1 text-xl font-semibold">{release.title}</h3>
<p className="text-muted-foreground mt-2">{release.summary}</p>
<ul className="mt-5 space-y-2.5">
{release.changes.map((change) => (
<li
key={change.text}
className="flex items-start gap-3 text-sm">
<span className={`mt-px inline-flex w-[4.75rem] shrink-0 justify-center rounded-full px-2 py-0.5 text-xs font-medium ring-1 ring-inset ${tagStyles[change.tag]}`}>{change.tag}</span>
<span>{change.text}</span>
</li>
))}
</ul>
</div>
</li>
))}
</ol>
</div>
</section>
)
}