Skip to content

@carbon/react 1.11.0 // ToolTip component not working #12005

Answered by tw15egan
urbanisierung asked this question in Help
Discussion options

You must be logged in to vote

Hey there @urbanisierung! Sorry for the inconvenience caused. The bottom source code may be coming from the v10 version; with v11 and the switch to @carbon/react, the documentation shows the correct usage. Here is a link to the v11 source, which now utilizes the Popover component.

t The Tooltip wraps an interactive element, in this case, a button. In our storybook, we've styled the button a little bit, which could be causing some confusion.

Here's a link to an updated CodeSandbox that hopefully helps illustrate the usage a little clearer: Code example.

Also of note, there is a ToggleTip component, which can be used when the tooltip content has interactive elements inside.

Let me know if t…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@urbanisierung
Comment options

@urbanisierung
Comment options

@tw15egan
Comment options

Answer selected by urbanisierung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants