Commit

A Git commit card detailing commit message, hash, author, and line change diff badges.

The Commit component visualizes code modification commits authored by autonomous agents or developers.

Usage

tsx
import {  Commit,  CommitHeader,  CommitContent,  CommitDiff,} from "@celestia-project/ui"
export function MyCommit() {  return (    <Commit className="w-full max-w-md">      <CommitHeader        hash="7a8f9c1"        message="feat: add Hono RPC typed client route"        author="Celestia Agent"      />      <CommitContent>        <CommitDiff added={18} removed={3} />      </CommitContent>    </Commit>  )}

Props Reference

ComponentPropTypeDescription
CommitHeaderhashstringCommit SHA hash snippet.
CommitHeadermessagestringGit commit title.
CommitHeaderauthorstringName of committer or agent.
CommitDiffaddednumberCount of inserted lines.
CommitDiffremovednumberCount of deleted lines.