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

Add ability to show tooltips for buttons #249

Merged
merged 1 commit into from
Oct 22, 2022

Conversation

marinaxkonsta
Copy link

To be able to have a tooltip show on hover to explain what the button does.

Changes:

  • Using react-popper-tooltip to show the tooltip
  • Pass in the popper options through the widget config ie. widgets={[CustomWidgetconfig({popper: {name: "test", placement: "left", offset: [15,25]}}]}

Screen Shot 2022-10-20 at 4 11 26 PM

@michelson
Copy link
Owner

awesome! thank you very much for this,
can I ask for you to provide an example in docs?
docs for dante2 are located in packages/dante2/docs

@marinaxkonsta
Copy link
Author

Done! I added in some examples

@michelson michelson merged commit 596b1ba into michelson:master Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants