Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to add symbol to end of <Link> component from Material UI?

How do I add a symbol (e.g. >) to the end of a component from Material UI? i.e. It looks like this:

enter image description here

Currently, my code looks something like this:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

<Link>
   Learn more &gt;
</Link>

But I want it to end up looking like this without adding ">" into the HTML:

<Link xxx>
   Learn more
</Link>

>Solution :

So you can do it like this

return (
    <Link>
        Learn More {">"}
    </Link>
);

If you want it to not be underlined, I would put it in its own tag and make the css to that tag be disabled

return (
     <Link>
         Learn More <p className="myParagraph">{">"}</p>
     <Link>
);

css file:

myParagraph {
     text-decoration: none;
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading