Diff view

Renders a real two-string line diff as color-coded unified-diff output.

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

lr-diff-view

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

Read guide (English)

Related components

  • Element picker — Highlights page elements for selection with a pointer or keyboard.
  • Divider — Themeable semantic separator for splitting content horizontally or vertically.
  • Export button — Download table data as CSV or JSON, single-format or via a format menu.
  • Format bytes — Locale-aware byte-size formatting with an adjustable unit step and precision.
  • Format date — Locale-aware date and time formatting via Intl.DateTimeFormat.
  • Format number — Locale-aware number, currency and compact formatting via Intl.NumberFormat.