Component packs › Chronicle › Branch Graph

Branch Graph

Scrub back and the git history un-draws: commits fade, branches un-fork, merges come undone, HEAD walks back.

Branch Graph is a git graph from Chronicle, a component pack with 6 timeline components: Timelines and history with one scrubbable time axis: drag it and everything shows that moment. Price: $2 for the whole pack.

Built with: SVG graph on the time scale, merge and fork edges, commit detail.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Branch Graph props

PropTypeDefaultDescription
commitsGraphCommit[]
lanesstring[]
widthnumber420Width in px. Default 420.
darkboolean
autoplaynumber | falseShowcase mode: scrubs through the history every N ms while visible.

Methods on the ref

Use it in React

import BranchGraph from './BranchGraph';

<BranchGraph />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Chronicle

Good for: Timelines.