Diff view

E compare two strings by line and show colour-coded unified diff.

Formatters, copy/export, JSON viewer, dividers and other helpers.

lr-diff-view

import '@aceshooting/lyra-ui/components/lr-diff-view.js';

Read di guide (for English)

Components wey relate

  • Element picker — E dey highlight element for page so you fit pick am with pointer or keyboard.
  • Divider — Semantic separator wey theme fit style for horizontal or vertical content.
  • Export button — Download table data as CSV or JSON, directly or from format menu.
  • Byte formatter — E format byte size for locale, with adjustable unit step and precision.
  • Date formatter — E format date and time for locale through Intl.DateTimeFormat.
  • Number formatter — E format numbers, money and compact values for locale through Intl.NumberFormat.