Prefix / Suffix (money symbol) not available in `s-money-field`

Hi everyone,

I’m using Shopify Polaris Web Components and working with the <s-money-field> component. I noticed that there’s no option to add a money symbol, prefix, or suffix.

In many cases, we need to display a currency symbol (e.g., $, , ) directly inside the input field as a prefix or suffix, but this doesn’t seem to be supported.

Is there any plan to add prefix/suffix support in s-money-field, or is there a recommended workaround to achieve this functionality?

Thanks in advance!

2 Likes

Looks like there used to be a ‘currencyCode’ prop, which has since been removed. The description of the component has also changed, removing reference to currency formatting etc. I wonder if this didn’t make the cut for v1.0?

I will say that we’ve been able to get things working, using the <s-text-field> - although it would be nice to have a fully fledged money field.

Long-term we plan to reintroduce the currency symbol, we just need to implement some infrastructure pieces first for it. Thank you!

2 Likes

Hey Anthony, just seeing if there’s any updates to it yet?

I understand stuff like this takes time but was just curious about the timelines

We’re working on it. :slight_smile:

1 Like