CommitStrip
A compact latest-commit bar showing author, message, SHA, time, and a history link.
Import
import { CommitStrip } from "@gumtree/ui/forge/CommitStrip" ; Props
| Prop | Type | Default | Description |
|---|---|---|---|
authorName* | string | - | Commit author display name |
authorAvatar | string | - | URL for the author avatar image |
authorPlaceholder | string | - | Initial letter for avatar placeholder |
authorColor | string | - | Background color for the avatar placeholder |
message* | string | - | Commit message (truncated if long) |
sha* | string | - | Abbreviated commit hash |
shaHref | string | - | Link to the commit detail page |
time* | string | - | Relative or formatted time |
historyHref | string | - | Link to the commit history page |
Examples
With History Link
A commit strip with a clickable SHA and history button.
< CommitStrip
authorName = "brendan"
authorPlaceholder = "B"
message = "Add es and pt to is_rtl() for comprehensive locale fallback"
sha = "a1f3e02"
shaHref = "#"
time = "2 hours ago"
historyHref = "#"
/> Minimal
A commit strip without links.
C
carolfeat: add BCP-47 locale matchingf8c2d913 days ago< CommitStrip
authorName = "carol"
authorPlaceholder = "C"
message = "feat: add BCP-47 locale matching"
sha = "f8c2d91"
time = "3 days ago"
/>