I am trying to set a custom cursor image when hovered on a specific element. I've tried putting my svg icon in src folder and call it in styled components as
const HStyles = styled.h3`
cursor: url("images/pen-tool.svg");
`;
But it doesn't change the cursor to pen image. I've also tried
cursor: url('images/pen-tool.svg'),
url('images/pen-tool.cur');
cursor: url('images/pen-tool.svg'),
move;
My svg has a width and height defined in it's svg tag but still no work. Am I missing something here ?
You can check my code sandbox sample here