New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reactjs-mappletooltip

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactjs-mappletooltip

Mapple ToolTip: A light weighted and easy to customize React Tooltip.

  • 1.4.63
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status npm version NPM license

Reactjs - Mapple ToolTip

A light weighted, easy and customizable tool tip for your app. Mapple is crafted in an elegant manner.

Mapple Image

Installing

npm i reactjs-mappletooltip --save

Demo and Mapple ToolTip generator

Generate the config for your Mapple ToolTip from here Demo and Generator

Usage

Default

var MappleToolTip = require('reactjs-mappletooltip');
const PageWithToolTip = () => {
  return(
    <div>

      {/* Default Mapple */}

      <MappleToolTip>
        <div>
          Show Mapple Tip on this
        </div>
        <div>
          Hey! this is damn easy
        </div>
      </MappleToolTip>

      {/* customized Mapple */}

      <MappleToolTip float={true} direction={'bottom'} mappleType={'warning'}>
        <div>
          Float in bottom direction
        </div>
        <div>
          direction = 'bottom'<br/>
          float = true<br/>
          mappleType = 'warning'
        </div>
      </MappleToolTip>
    </div>
  );
}

Isn't it super easy to start wwiith Mapple ToolTip :sunglasses:

The Mapple-ToolTip seeks for two child elements. When the mouse pointer is hovered on the first child, div in the example, the Mapple ToolTip appears on top of the first child with the second child as the content within the tip.

Preview of defined styles

8styles

##Highlights

  • Start with 8 pre-defined Mapple ToolTip themes
  • Customize the Mapplet ToolTip to get your own theme.
  • Supports multiline content in Mapple Tip
  • Supports images with text within the Tip

Mapple Tool Tip Props

Prop NameDesciptionOptionsType
directionDirection of the Mapple tip to be rendered
  • top (default)
  • right
  • bottom
  • left
    string
    mappleTypeDirectly use the predefined 8 types of Mapple style
    • default (default)
    • ching
    • light
    • contra
    • success
    • warning
    • info
    • error
    string
    floatIf set true, the Mapple floats with the cursor
    • false (default)
    • true
    boolean
    shadowSets the shadow of the Mapple tip
    • false (default)
    • true
    boolean
    fadeInAnimation Activates the 0.25s fade in transition to the Mapple visibility
    • true (default)
    • false
    boolean
    tipPositionSets the position of triangular tip, under the Mapple Tip.
    Ranging from 0-100 percent.
    • 50 (default)
    • 0 - 100
    number (percentage)
    backgroundColorSets the background of the Mapple tip.
    This overwrites the defined Mapple themes
    • black (default)
    • any color
    string
    textColorSets the color of text of the Mapple Tip
    • white (default)
    • any color
    string
    paddingSets the padding in the Mapple Tip
    • '8px 12px' (default)
    • CSS style padding property
    string
    showMappleIfDisplay/hide the Mapple Tool Tip on the content, based on condition
    • true (default)
    • any condition
    boolean

    Keywords

    FAQs

    Package last updated on 30 Sep 2016

    Did you know?

    Socket

    Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

    Install

    Related posts

    SocketSocket SOC 2 Logo

    Product

    • Package Alerts
    • Integrations
    • Docs
    • Pricing
    • FAQ
    • Roadmap
    • Changelog

    Packages

    npm

    Stay in touch

    Get open source security insights delivered straight into your inbox.


    • Terms
    • Privacy
    • Security

    Made with ⚡️ by Socket Inc