Skip to content

Components: components need the library base styles to render correctly #584

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

Open
printerscanner opened this issue Nov 13, 2024 · 2 comments
Assignees

Comments

@printerscanner
Copy link
Member

When installing some components on a fresh shadcn project, the component doesn't render correctly due to a missing style file from the library.

Suggestion: Add missing stylesheet import '@xyflow/react/dist/style.css';. This may not be necessary for some of the custom components.

@printerscanner printerscanner changed the title Components: Components need the library base styles to render correctly Components: components need the library base styles to render correctly Nov 13, 2024
@moklick
Copy link
Member

moklick commented Mar 28, 2025

Is this still an issue @peterkogo @printerscanner ?

@printerscanner
Copy link
Member Author

printerscanner commented Apr 1, 2025

Yes, but the question is should we add it to each component that needs it and have redundancy or put it in bold somewhere in a tutorial that you need to have your styles imported for components to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants