Best way to to have an input indicate it is a dollar amount? #953
Answered
by
katiegeorge
tomvonheill
asked this question in
Q&A
-
I have a field that is being input as a dollar amount, and am wondering the best way to show the user this? Any one have a best practice. I was thinking about just appending a dollar sign to the front of the input but that doesn't feel right. Should it just be a hint? Looking for some strong opinions (i'm a backend guy looking to not destroy this these UI standards) |
Beta Was this translation helpful? Give feedback.
Answered by
katiegeorge
May 15, 2023
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
katiegeorge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good question! There are a couple different ways you could do this that would all be good industry practice, so it's up to you which one you ultimately end up using.
One small aspect to keep in mind with adding a prefix here is that if you have several fields lined up vertically, the alignment could look off.
Remember to add
type="number"
to the Input as an added affordance so that the user can't accidentally type a letter value!