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] Add callouts and troubleshooting sections #1218

Open
atomiks opened this issue Dec 23, 2024 · 2 comments
Open

[docs] Add callouts and troubleshooting sections #1218

atomiks opened this issue Dec 23, 2024 · 2 comments
Labels
docs Improvements or additions to the documentation

Comments

@atomiks
Copy link
Contributor

atomiks commented Dec 23, 2024

The old documentation had many of these that were useful that are missing on the new docs. We should try to port these over to the new docs (matching the new style of course).

For instance, developers are probably going to be tempted to use Tooltip when trying to create things like the infotips on the docs, when they should actually use <Popover.Root openOnHover>.

No matter how much we try to optimize the API, there are going to be potential areas that may be confusing or need workarounds to document. It's a good idea to list as many of these as we can in the docs upfront to ensure devs are aware.

@atomiks atomiks added the docs Improvements or additions to the documentation label Dec 23, 2024
@samuelsycamore
Copy link
Contributor

For the specific example you mentioned: how do you feel about something like a "Usage" section for each component? We started to apply this pattern to some of the Material UI docs last year, to help users get to the correct component for their use case: https://mui.com/material-ui/react-snackbar/#usage

@atomiks
Copy link
Contributor Author

atomiks commented Dec 26, 2024

to help users get to the correct component for their use case

Yeah this is what we need. I think it shouldn't be a "plain" paragraph though as in the Material UI docs - it should draw their attention more clearly by being colored or such

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
Projects
None yet
Development

No branches or pull requests

2 participants