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

Wanted to know whether react-icons can be clicked ? #445

Closed
crossLineApex opened this issue May 29, 2021 · 2 comments
Closed

Wanted to know whether react-icons can be clicked ? #445

crossLineApex opened this issue May 29, 2021 · 2 comments

Comments

@crossLineApex
Copy link

Describe the bug
I'm trying to add onClick on the react-icon I'm using and its not working
Minimal sample repository
Gist/Github URL

Expected behavior
This is the line of code
<AiOutlineSound onSelect={() => console.log("clicked")} />

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Device: [e.g. PC, iPhone6]
  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@crossLineApex
Copy link
Author

Coudn't use it so I placed it inside a button with some css, but this can still be something to look for

@kamijin-fanta
Copy link
Member

Please use the container element.

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