Napoleon's Pixelated Mugshot

    react-auto-tooltip
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.6 • Public • Published

    react-auto-tooltip

    Tooltip component for react

    NPM JavaScript Style Guide

    The position of the tooltip is calculated automatically.

    Install

    npm install --save react-auto-tooltip

    Usage

    import { Tooltip } from 'react-auto-tooltip';
    
    <Tooltip message="Tooltip message">hello</Tooltip>;

    Live Demo

    props

    Name Type Default Description
    message ReactNode The text shown in the tooltip
    toggleMode boolean false Tooltip trigger click mode
    defaultVisible boolean false Whether the floating tooltip is visible by default
    zIndex number 1000 Config z-index of Tooltip
    backgroundColor string rgba(0, 0, 0, 0.9) The background color
    style CSSProperties
    className string
    onVisible (visible: boolean) => void Callback executed when visibility of the tooltip card is changed

    License

    MIT © almond-bongbong

    Install

    npm i react-auto-tooltip

    DownloadsWeekly Downloads

    2

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    485 kB

    Total Files

    19

    Last publish

    Collaborators

    • almondbongbong