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
commitsis the list. Each commit has asha, atitle, anauthor, and atime(milliseconds or an ISO date). It can also haveaddedandremovedline counts and aurl.- 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.
localeformats the days and times.time-zonesets 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
labelsor a label pack. The API table lists the keys.
Usage
ts
import { BlessCommitList } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
commits* | BlessCommit[] | — | |
locale | string | "en" | |
timeZone | string | — | an IANA time zone for the days; set it when you render on a server |
labels | Partial<{ day: (date: string) => string; changes: (added: number, removed: number) => string; copy: string; copied: string; }> | — |