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: A light weighted and easy to customize Tooltip.

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
74
increased by15.63%
Maintainers
1
Weekly downloads
 
Created
Source

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

Usage

Default

var MappleToolTip = require('reactjs-mappletooltip');
const PageWithToolTip = () => {
    <MappleToolTip>
      <div>
        Show Mapple Tip on this
      </div>
      <div>
        Hey! this is damn easy
      </div>
    </MappleToolTip>

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

Isn't it super easy to start with 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

7styles

Mapple Tool Tip Props

Prop NameDesciptionOptionsType
directionDirection of the Mapple tip to be rendered * top (default)
* right
* bottom
* left
string
floatIf set true, the Mapple floats with the cursor* false (default)
* true
boolean
tipPositionSets the position of triangular tip, under the Mapple Tip.
Ranging from 0-100 percent.
50 (default)
0 - 100
number (percentage)
mappleTypeDirectly use the predefined 7 types of Mapple style* default (default)
* light
* contra
* success
* warning
* info
* error
string
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 Tipwhite (default)
any color
string
shadowSets the shadow of the Mapple tip* false (default)
* true
boolean

To do feature

  • Add option to show Mapple on click
  • Add different types of animations.
  • Add method Callbacks
  • Set zIndex

Keywords

FAQs

Package last updated on 31 Jul 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