Skip to content
Get Pro

Commit

An expandable changed-file summary with folder groups, line counts, and a diff action.

Loading component preview…

Installation

Add the component source directly to your project.

pnpm dlx shadcn@latest add https://pastaui.com/r/commit.json

API reference

Commit

Commit properties
PropTypeDefaultDescription
filesCommitFile[]Changed files with path, additions, and deletions. Folder groups and totals are computed automatically.
onOpen() => voidOpens your diff view. The action is disabled when omitted.