Go Behind the Experience to see how Tecovas brings the West to life with Sanity đŸ¤  July 18th

Modifying the number field to prepend a currency value in Sanity.io Slack thread.

2 replies
Last updated: Aug 30, 2023
How would I modify the number field to prepend a $ for a currency value? For example like this:
Aug 30, 2023, 10:19 PM
That would be a custom component . It would be fairly simple. Use the
method that’s passed into your
and mash a little Box with a
in it in front of it.
Aug 30, 2023, 10:26 PM
awesome thanks
user M
i'll give that a go
Aug 30, 2023, 10:27 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?