0.1.2 • Published 5 years ago

simple-tooltip-component v0.1.2

Weekly downloads
13
License
-
Repository
-
Last release
5 years ago

A Tooltip Comoponent in React

A simple component for creating Tooltip in react.js

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

A basic understanding of React.js

Props

Prop NameProp TypeProp Definition
parentClassStringclass selector of css
childClassStringclass selector of css
childrenElementString or JSXElement on which tooltip is hovered
tooltipTextString or JSXContent of tooltip
styleobjectStyle of the element

Examples

Example specific to react

import Tooltip from "simple-tooltip-component";

<Tooltip childrenElement={<div>Adam</div>}
  tooltipText={<span>Hey this is my name</span>}
  childStyle={{}} parentStyle={{}}/>

Authors

Gaurav Jadwani

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago