-
Notifications
You must be signed in to change notification settings - Fork 28
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
Possibility to pass a component to be rendered in the tooltip content #43
Labels
Comments
Hi! I don't really get your question as <ReactHint events onRenderContent={(target, content) =>
<AnyCustomComponent id={target.dataset.someId}>{content}</AnyCustomComponent />
} />
...
<button data-rh="This is the content" data-some-id="123">Click me</button> |
I understad.. But what if each button needs a different custom Here is a example of how I got around this issue.
|
@adardesign I am working on a new major version. Will keep your case in mind |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to render a component as the tooltip's content?
For example:
const TooltipContentComponent = (props) => <p>content {props.prop1}</p>;
The text was updated successfully, but these errors were encountered: