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

Add more classNames to customize suggestions related elements #840

Open
sitek94 opened this issue Feb 26, 2022 · 1 comment
Open

Add more classNames to customize suggestions related elements #840

sitek94 opened this issue Feb 26, 2022 · 1 comment

Comments

@sitek94
Copy link

sitek94 commented Feb 26, 2022

Hey there, awesome library!

It'd be nice to have an option to pass custom classes not only to suggestions wrapper, but also to ul and li elements. We wouldn't have to create an extra .css file just to add those:

.ReactTags__suggestions {
  @apply z-50 absolute mt-2 w-full overflow-hidden rounded-lg bg-white shadow-lg;
}
.ReactTags__suggestions ul {
  @apply max-h-64 overflow-y-auto;
}
.ReactTags__suggestions li {
  @apply cursor-pointer p-2 text-sm text-gray-700 hover:bg-gray-100;
}

I think, it shouldn't be hard to accept more props there, and I could work on a PR, if you like the idea :)

Cheers!

@ad1992
Copy link
Member

ad1992 commented Feb 28, 2022

@sitek94 not sure what you mean by extra css file but you will not need an extra .css file to add these, you can add it in the same file where your other CSS is added

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