-
Notifications
You must be signed in to change notification settings - Fork 230
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
[TextField] TextField slots with Tailwind (Next14) #157
Comments
What's not working exactly? |
Hi @vladmoroz - I would expect the icons to be within the input style as per the docs? |
I see, and what are you getting? A full reproduction with a link to CodeSandbox would be easier to understand. Your code looks fine and should work, although I am not sure what's the purpose of the Tailwind classes on top of Radix Themes components (e.g. |
@vladmoroz Here is a quick example - on CodeSandbox - I would expect that without having to update styles the icon is placed in the correct position? And also able to apply the styles to the Root that encompasses both icon and input? |
Oh, I see. You are not importing Radix Themes CSS, please follow the docs guide: It's not unstyled like the primitives, this is an opinionated component library with its own styles. If you plan to continue using Radix Themes with Tailwind, make sure to check out this issue as the Tailwind reset overwrites our styles. We recommend to give it a go with plain CSS or CSS modules, as the value that Radix Themes provides and the value that Tailwind provides can get you into counterproductive situations. |
I'm trying to create a dynamic TextField with slots for icons, however the slots are not working as expected? I've seen issues similar to CSS specificity issues w/ tailwind #109 but trying this solution has not worked...
Does anyone have any suggestions?
Docs: Themes/TextField
TextField component
package.json
The text was updated successfully, but these errors were encountered: