1.0.3 • Published 4 years ago

@shubham_17/tooltips v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

REACT TOOLTIPS

Hint.css

Installation

npm install @shubham_17/tooltips --save

Usage

import React from "react";
import Tooltip from "./Tooltip";
class App extends React.Component {
  render() {
    return (
      <React.Fragment>
          <Tooltip text="I'm in top"
              position="top"
              type="success"
              animation="bounce"
              size="medium">
            <div>
              Hello There.!!
            </div>
          </Tooltip>
      </React.Fragment>
    );
  }
}

Tooltip Options

You can customize this tooltip with different available options. Note All options are in lower case.

OptionsTypes
positiontop , right , bottom , left , top-right/left , bottom-right/left
sizesmall , medium , large
typeinfo , error , success , warning
animationbounce (more to come)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Note

This is a demo package ;)