openui / openui/open-ui

<measure> web component

Open
#499 18 comments 2 reactions 1 assignee View on GitHub

@keithamus is already working on this.

Since Jun 4, 2026.

Dominant language
MDX
Stars
4.5k
Forks
226
Avg merge
2d 22h
Merged PRs (30d)
4

Description

I would like to present an idea for a web component, it's very similar to the <time> element in the sense that it's and inline element with an attribute that accepts a value of a certain standard. While <time> has a datetime attribute, the new <measure> element might have a set of unit and value attributes.

Example:

<data unit="meter" value="2">2m</data>

This web component could reuse the existing element <data>, or introduce a new one (e.g. <m>, <measure>).

The main purpose would be to standardize an API that will allow physical measurements to be machine-readable and thus easier for automatic/on-demand conversion which can aid a11y for users of varying locales.

Some candidates that I could find for unit code standard are UN/CEFACT Common Codes, UCUM's units, or Wikipedia's.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.