Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@hakuna-matata-ui/tooltip

monacohq17MIT1.4.3TypeScript support: included

A React Component for rendering dynamically positioned Tooltips

react, tooltip, component, popper, chakra ui, toggletip, react popper

readme

Tooltip

Use this component to display extra information about an element by displaying a floating description.

Installation

yarn add @hakuna-matata-ui/tooltip

# or

npm i @hakuna-matata-ui/tooltip

Import components

import { Tooltip } from "@hakuna-matata-ui/react"

Usage

If the children of Tooltip is a string, we wrap with in a span with tabIndex set to 0, to ensure it meets the accessibility requirements.

<Tooltip label="Hey, I'm here!">Hover me</Tooltip>