Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Compatibility as cursors #116

Closed
penx opened this issue Feb 4, 2022 · 1 comment
Closed

Request: Compatibility as cursors #116

penx opened this issue Feb 4, 2022 · 1 comment

Comments

@penx
Copy link

penx commented Feb 4, 2022

I'd love to be able to use some of these icons as a cursor.

e.g.

import pencil from @radix-ui/icons/pencil-1.svg?raw';

const CustomCursor = styled('div', {
  cursor: `url("data:image/svg+xml,${pencil}") 0 15, pointer`
}); 

However this would require:

  1. creating a package @radix-ui/icons with the raw SVG icons or including the raw SVG assets with the existing react-icons package (they are not bundled at present)/
  2. dual tone icons, e.g. for the pencil having a black outline and a white fill - this is so that the icon would remain visible when moving between white and black background areas.
@vladmoroz
Copy link
Collaborator

Hi @penx, adapting the icons for cursors is a bit out of scope for this package since it might be a bit too niche and has a bunch of extra design constraints. Feel free to modify the icons for your project and use them as you see fit though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants