mattsmith5
mattsmith5

Reputation: 1093

React change the Cursor pointer style on MUI Link

How do I change the Cursor pointer style on MUI Link? It does not recognize style input below.

<Link
   style={{ cursor: 'pointer' }}
   onClick={() => {
     getTemplate();
   }}
</Link>

Upvotes: 3

Views: 5721

Answers (1)

G Sriram
G Sriram

Reputation: 555

The default cursor for Link is "pointer". You can try some other cursor and you should notice the difference.

<Link
   style={{ cursor: 'crosshair' }}
   onClick={() => {
     getTemplate();
   }}
</Link>

Upvotes: 5

Related Questions