Skip to content
kapable

DiffBlock

Data display · 2 exports · v0.1.0 · showcase

Unified-diff lines in an accessible scroll region with add, delete, and context states.

Browse 72 component families
middleware: [  formData(),  loadDatabase(db),

Usage

DiffBlock usage
<DiffBlock label="router.ts change" lines={parseDiff(text)} />

API

DiffBlock API

DiffBlockProps

DiffBlock props
proptypenotes
linesDiffLine[]
label?stringAccessible name for the scroll region ("Change to router.ts").
dense?boolean
mix?MixInput

More in Data display

More in Data display