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

[Button] - Can we add cursor pointer #309

Closed
LanguageXange opened this issue Feb 20, 2024 · 1 comment
Closed

[Button] - Can we add cursor pointer #309

LanguageXange opened this issue Feb 20, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation duplicate This issue or pull request already exists ecosystem Incompatibility with something else

Comments

@LanguageXange
Copy link

I'm using radix-ui ( first time using it ) with tailwind css, and the cursor-pointer className won't work

  <Button className="cursor-pointer">
          Submit 
    </Button>

And I had to use style to simply add a pointer cursor

  <Button style={{ cursor: "pointer" }}>
          Submit 
        </Button>

I wonder if we could add a cursor prop to Button and make pointer the default ?

e.g. <Button cursor="xxx" >

@vladmoroz
Copy link
Contributor

You'll need to update your Tailwind setup to make sure the utility classes work. As for cursors, there's a more native way to set it up across the board for all components.

Please see this comment:
#123 (comment)

@vladmoroz vladmoroz added documentation Improvements or additions to documentation duplicate This issue or pull request already exists ecosystem Incompatibility with something else labels Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation duplicate This issue or pull request already exists ecosystem Incompatibility with something else
Projects
None yet
Development

No branches or pull requests

2 participants