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

Using React Component with className prop in Astro, this plugin doesn't work #213

Closed
enk0de opened this issue Sep 17, 2023 · 1 comment · Fixed by #215
Closed

Using React Component with className prop in Astro, this plugin doesn't work #213

enk0de opened this issue Sep 17, 2023 · 1 comment · Fixed by #215
Assignees

Comments

@enk0de
Copy link

enk0de commented Sep 17, 2023

What version of prettier-plugin-tailwindcss are you using?
0.5.4

For example: v0.1.7

What version of Tailwind CSS are you using?
3.0.24

For example: v3.0.22

What version of Node.js are you using?
v18+

For example: v12.0.0

What package manager are you using?
yarn

For example: npm, Yarn

What operating system are you using?
macOS

For example: macOS, Windows

Reproduction URL

A public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways. Unfortunately we can't provide support without a reproduction, and your issue will be closed with no comment if this is not provided.

Describe your issue
when i use React Component that has className prop for taking additional classes in .astro file , this plugin cannot detect className in astro file.

Describe the problem you're seeing, any important steps to reproduce and what behavior you expect instead.

@enk0de enk0de changed the title Using React Component with className prop in Astro, Plugin can't detect. Using React Component with className prop in Astro, this plugin doesn't work Sep 17, 2023
@thecrypticace thecrypticace self-assigned this Sep 18, 2023
@thecrypticace
Copy link
Contributor

Hey I've merged a fix for this in #215 and it'll be available via our insiders build shortly:

npm install prettier-plugin-tailwindcss@insiders

I'll push out a proper release later this week. Thanks for reporting it!

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

Successfully merging a pull request may close this issue.

2 participants