Duration formatter
Display elapsed time in the reader’s language.
Formatters, copy/export, JSON viewer, dividers, and helpers.
lr-format-duration
import '@aceshooting/lyra-ui/components/lr-format-duration.js';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 page elements for selection with a pointer or keyboard.