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

[docs][base-ui] Working With Tailwind guide - import conflicts in example code #38692

Closed
1 task done
christophermorin opened this issue Aug 28, 2023 · 2 comments · Fixed by #38693
Closed
1 task done
Assignees
Labels
docs Improvements or additions to the documentation support: docs-feedback Feedback from documentation page

Comments

@christophermorin
Copy link
Contributor

Duplicates

  • I have searched the existing issues

Related page

https://mui.com/base-ui/guides/working-with-tailwind-css/

Kind of issue

Unclear explanations

Issue description

Hello. Ran into some issues going through the Working With Tailwind guide using Base.

The Slider and Button imports in their respective components cause import declaration conflicts with local declarations.
Also, when adding 'thumb' to the Slider component slots, 'thumb' cannot be found.

Fixed by importing Slider/Button as BaseSlider/BaseButton and setting slots too:

slots {{
  thumb: Thumb
}}

Hope this is of use.

Context 🔦

Learn all the things.

@brijeshb42
Copy link
Contributor

Would you be open to creating a PR to fix the issue?

@brijeshb42 brijeshb42 added docs Improvements or additions to the documentation and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 29, 2023
@brijeshb42 brijeshb42 self-assigned this Aug 29, 2023
@christophermorin
Copy link
Contributor Author

Would you be open to creating a PR to fix the issue?

PR created #38693 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation support: docs-feedback Feedback from documentation page
Projects
None yet
2 participants