Open experiment
Smart currency field
Formats monetary input while preserving caret-friendly editing and showing a fee calculation. Input sanitizes decimals, formats on blur, and updates fee and net values as text. Adds locale-aware monetary derivation rather than a generic text field.
Lab tested Responsive Dark mode Interactive
- Version
- 1.0.0
- Updated
- 2026-08-02
- Dependencies
- Zero
<form class="cmp-smart-currency-field cmp-atlas" data-state="idle" data-variant="1" novalidate>
<div class="cmp-atlas__field-head"><span>Numeric fields</span><b>Precision currency</b></div>
<label class="cmp-atlas__input"
><span>Project budget</span
><input type="text" inputmode="decimal" data-text value="2400.00" /><i aria-hidden="true"
>$</i
></label
>
<div class="cmp-atlas__equation"><span>Platform fee</span><b data-output>$72.00</b></div>
<div class="cmp-atlas__field-meter" aria-hidden="true"><i></i></div>
<p data-status aria-live="polite">Control ready</p>
</form>
No runtime reactions detected Open in Editor
Validated in the lab
Experiment report
- Schema and source files passed
- Responsive test passed
- Keyboard test passed
- No console errors
Component ingredients
- Dependencies
- None
- Browser support
- Current Chrome, Current Edge, Current Firefox, Current Safari
- Version
- 1.0.0
- Last tested
- 2026-08-02
Accessibility notes
- Every interactive target is a labelled native control with a visible focus treatment.
- State changes are communicated through a polite text status and never by color alone.
- The contained visual effects stop when the user requests reduced motion.
License: MIT License for open-source use, modification, and distribution.