Skip to content
Calm motion: animations on this site only fade, with no movement

Commit list ​

The commits of a branch by day, with the author, the short hash, and the changes

Shows the history of a branch in a code host or in a deploy tool. For the lines of one change, use the diff.

Basic
  1. Add the bundle offer to the shopSari Wulandari · 03:12 PM184 lines added, 12 lines removed9f3c2a1
  2. Move images to the new storeDimas Pratama · 10:40 AM42 lines added, 97 lines removed7be0d41
  1. Fix the price of the pop filterAna Putri · 05:05 PM2 lines added, 2 lines removedc41a9e0
  2. New product pages for the studio rangeAna Putri · 01:30 PM1240 lines added, 310 lines removed2d8f6b3
  • commits is the list. Each commit has a sha, a title, an author, and a time (milliseconds or an ISO date). It can also have added and removed line counts and a url.
  • The commits are grouped by day, newest first. Each day is a region with a name such as "Commits on Nov 17, 2026".
  • The counts show as +184 and −12. Screen readers hear "184 lines added, 12 lines removed". On a narrow screen, the counts are hidden.
  • The hash shows with seven characters. Its copy button copies the full hash and has the short hash in its name.
  • locale formats the days and times. time-zone sets an IANA time zone. If you render on a server, set it, so the server and the browser show the same day.
  • Change the words with labels or a label pack. The API table lists the keys.

Usage ​

ts
import { BlessCommitList } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
commits*BlessCommit[]—
localestring"en"
timeZonestring—an IANA time zone for the days; set it when you render on a server
labelsPartial<{ day: (date: string) => string; changes: (added: number, removed: number) => string; copy: string; copied: string; }>—

Released under the MIT License. Character names and artwork belong to their owners.