0.0.3 • Published 2 years ago

tiny-react-tooltip v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

tiny-react-tooltip

A simple and easy to use React tooltip.

NPM JavaScript Style Guide

Install

npm install --save tiny-react-tooltip

Screenshot

screenshot

DEMO

Tiny React Tooltip Demo

Usage

import React from 'react'

import { Tooltip } from 'tiny-react-tooltip'
import 'tiny-react-tooltip/dist/index.css'

const App = () => {
  return (
    <div className='wrapper'>
      <Tooltip content='Bottom tooltip' direction='bottom'>
        Bottom
      </Tooltip>
      <Tooltip content='Top tooltip' direction='top'>
        Top
      </Tooltip>
      <Tooltip content='Left tooltip' direction='left'>
        Left
      </Tooltip>
      <Tooltip content='Right tooltip' direction='right'>
        Right
      </Tooltip>
    </div>
  )
}

export default App

License

MIT © sharukhkhanajm