Commit Row

Git commit row for React with author avatar, commit message, relative time, a short SHA badge and a copy button for the hash. Fits deploy logs.

src/registry/ui/commit-row.tsx/r/commit-row.json
AM

Raise Premium motion bar

Aman ·

a1b2c3d

Row

Installation#

bash
npx shadcn@latest add @minidev/commit-row

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/commit-row.json

Usage#

tsx
import { CommitRow } from "@/components/ui/commit-row"

export function Example() {
  return (
    <CommitRow />
  )
}

API reference#

CommitRow props
PropTypeDefault
shastring"a1b2c3d"
messagestring"Raise Premium motion bar"
authorstring"Aman"
datestring | Datenew Date().toISOString()
classNamestring-

Dependencies#

npm

React only
All Developer tool UI components for React