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.jsonAPI reference
Commit
| Prop | Type | Default | Description |
|---|---|---|---|
files | CommitFile[] | — | Changed files with path, additions, and deletions. Folder groups and totals are computed automatically. |
onOpen | () => void | — | Opens your diff view. The action is disabled when omitted. |