Hi,
I've Designed a Form , where few fields are mandatory fields. To highlight these I thought of adding a red color asterisk after the label text. But not sure how this can be achieved. Even if HTML is used how do we render it within the label.
Thanks
props.style.color: red
Did you read the docs and watch the Inductive niversity videos ?
Yes I did, I am aware about this props.style.color: red. What I actually required was to keep the text as it is and change the color of only the special character.
Something like this :
I think using Markdown is your best choice on this, if you want to keep a single component,
Just add a second label for the star.
I had used this technique initially, thought if there is a way to get the asterisk within the label.
Thanks.