Tooltip

Show extra information for ui elements in overlay

Installation

npm install --save @gladio/overlays

Usage

import { Tooltip } from "@gladio/overlays"
function App () {
return <Tooltip content="More information here"><Icons.Info /></Tooltip>
}

Playground

Code Editor

Props

content [required]

The content/UI that we want to show in the tooltip. It can be a ReactNode or a string.

Code Editor
ISP

placement

We can change the placement of the tooltip which defaults to "bottom". It will auto adjust with respect the container boundaries. Possible values are: top, right, bottom, left

Code Editor

interactive

We can make the tooltip interactive by providing a boolean interactive prop. Can be useful when we want an interactive element in our tooltip.

Adding interactive prop will also cause a delay when tooltip closes

Code Editor
Email here