-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Need example code of <Tooltip />; Only <TooltipHost /> examples are available #14516
Comments
Thanks for the feedback @timothyhoffmann ! And we'll take this feedback as input when we converge our Thanks! |
@timothyhoffmann, can you elaborate on the scenario where you want to use The interesting logic for tooltips is in fluentui/packages/office-ui-fabric-react/src/components/Tooltip/Tooltip.base.tsx Lines 48 to 57 in baa5199
|
Given the dearth of documentation on <Tooltip /> I don’t know if I do want to use it or not. If it’s really only usable internally by the developers of <TooltipHost /> then perhaps remove the reference from the documentation.
Regards,
|
Gentle ping that this issue needs attention. |
In reading this issue again. It sounds like the issue here is what should folks be using:
If 2, then update the documentation to steer folks to that component, If 1 and 2, then create a sample where ToolTip is used. Is that your expectation @timothyhoffmann ? |
So, I'm a little confused here. That's why I asked about the scenario here, @timothyhoffmann can you share the scenario you are interested in where you want to use a Tooltip component directly without the convenience of the TooltipHost? That would help understand the use case here so we can identify what is missing. If you are looking to just simply add Tooltips, the documentation and examples cover the cases on how to use the Fluent UI Tooltip functionality. |
Given the dearth of documentation on Tooltip I don’t know if I do want to use it or not. I don't have a scenario to use something if I don't understand what it does. If it’s really only usable internally by the developers of TooltipHost then perhaps remove the reference to ToolTip being the first item document at the top of the documentation where it's prominent:
|
Got it. I thought there was something that Tooltip was needed for that the documentation was falling short on. Yeah, I agree that just cleaning up the documentation is the right thing to do here. We'll be updating Tooltip in the future, this issue is a good thing to keep in mind as part of that update as well. I'll add this to the epic issue. Proposed fix:
|
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Describe the feature that you would like added
On page https://developer.microsoft.com/en-us/fluentui#/controls/web/tooltip please add an example of how to use the ToolTip component.
What component or utility would this be added to
https://developer.microsoft.com/en-us/fluentui#/controls/web/tooltip
The text was updated successfully, but these errors were encountered: