Tooltip

Details

Tooltips should only show tips or provide a little bit of further information. They should not hold any critical information.

Tooltip does not take any children to make developers think about the content they put inside the tooltip. However, you are still free to pass in any React components as the content.

If you want to show more meaningful content use an Inline Dialog

Usage

Edit

By default the Tooltip manages it own isVisible state.

If you want to manually show Tooltip, simply pass the show prop.

Component is not part of Kenobi

Edit

Placing

There are quite a few options for placing the Tooltip.

  • auto-start
  • auto
  • auto-end
  • top-start
  • top
  • top-end
  • right-start
  • right
  • right-end
  • bottom-end
  • bottom
  • bottom-start
  • left-end
  • left
  • left-start

However, top, bottom, left, right will be the most useful.

Props