Repo map
import { RepoMap, layoutRepoMap } from "@arcadia/ui/charts"; main 6 files 5 edited 1 read only+91 −15
Point at a file, or use the arrow keys, for its path and who changed it.
No file opened yet
RepoMap
titlerequired- string
- The map's name: the header's line and the file list's name.
filesrequired- readonly RepoMapFile[]
- Every file, in any order. A path given twice is read once, from its first record.
branch- string
- The branch the work stands on, beside the title.
depth- number
- Default:
2 - How many path segments make a folder: 2 groups src/components, 1 groups src.
onSelectFile- (file: RepoMapFile) => void
- A file pressed, or opened with Enter or Space: open its diff.
empty- ReactNode
- In place of the map when there are no files.
rootStyle- RootStyle<RepoMapKnobs>
Rest props go to HTMLAttributes<HTMLDivElement>.
State machine
main 3 files 2 edited 1 read only+49 −6
Point at a file, or use the arrow keys, for its path and who changed it.