Skip to content

How do I place tool tip icon after the required prop for form field #7492

Answered by rtivital
starxyn asked this question in Q&A
Discussion options

You must be logged in to vote

In this case, you can render the required asterisk on your side and not set it on the input element, like so:

label={<>Fruit <Tooltip /> <span>*<span/></>}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@starxyn
Comment options

Answer selected by starxyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants