
dirham v1.3.0 — A Universal Web Component for the UAE Dirham Symbol
The UAE Dirham now has an official Unicode codepoint — U+20C3 — accepted for Unicode 18.0. But operating systems won't ship native font support until September 2026. dirham bridges that gap. It maps the official glyph to U+20C3 via a custom web font, so your content is semantically correct today and future-proof for when native support arrives. What's new in v1.3.0 The headline feature is <dirham-price> — a Web Component that formats and displays Dirham amounts in any framework, no wrappers needed. <script type= "module" src= "https://cdn.jsdelivr.net/npm/dirham/dist/web-component/index.js" ></script> <dirham-price amount= "1250" ></dirham-price> <dirham-price amount= "5000000" notation= "compact" ></dirham-price> <dirham-price amount= "500" use-code ></dirham-price> It supports 8 attributes: amount , locale , decimals , notation , use-code , symbol-size , weight , and currency . Works everywhere Vue: < script setup > import " dirham/web-component " ; </ script > < template > <dirham-p
Continue reading on Dev.to JavaScript
Opens in a new tab




