Format duration

Display a duration using localised units and formatting.

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

lr-format-duration

import '@aceshooting/lyra-ui/components/lr-format-duration.js';

Read guide (English)

Related components

  • Intersection Observer — Emits native intersection entries as slotted targets enter or leave the viewport.
  • Mutation observer — Watches slotted DOM for element and attribute changes, forwarding native mutation records
  • Resize observer — Watches slotted elements and emits typed resize entries with no visual chrome
  • Copy button — Icon-only button that copies a text value to the clipboard with checkmark feedback.
  • Diff view — Renders a real two-string line diff as color-coded unified-diff output.
  • Element picker — Highlights a page element and lets you select it with the pointer or keyboard.