I have a MaterialUI TextField component, which is some circumstances is disabled and clickable to go to a phone number or email. When this is the case, I want to be able to click on the input and have it behave like an anchor tag with an href, which does not seem to be an option.
Here is the a rough example of what the code looks like:
<TextField
value={phone}
onClick={() => {
console.warn(`Behave like an href to ${phone}`);
}}
/>
OR
<TextField
value={phone}
href={`tel:${phone}`}
/>
I need to know either how to allow TextField to accept and href or how to get the onClick button to behave like an href. What is the proper way of doing so?
Here is a functional sample app of what I am doing with the features I am missing pointed out