Byte formatter

E format byte size for locale, with adjustable unit step and precision.

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

lr-format-bytes

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

Read di guide (for English)

Components wey relate

  • 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.
  • Icon — Sharp inline SVG icons from named built-in paths, without extra dependency.
  • JSON viewer — Collapsible tree for inspecting any JSON, with copy action.
  • Known date input — Separate day, month and year fields for date wey person already know.
  • Live region — ARIA region wey screen readers hear but eyes no see; e slow repeated announcements.