1.0.2 • Published 7 years ago

microtip-react v1.0.2

Weekly downloads
15
License
MIT
Repository
github
Last release
7 years ago

microtip-react

Getting started

react-simple-tooltip

Demo

Try it out

Alt Text

Installation

via npm

npm install microtip-react --save

Usage

Attached to a Component

import React from "react"
import Tooltip from "microtip-react"
import "./App.css"

const App = () => (
  <div className="tooltipContainer">
    <Tooltip
      label="Hi!"
      position="bottom"
      size="small"
      duration="0.5s"
      delay="0.2s"
      fontWeight="bold"
      textTransform="capitalize"
    >
      <button>My Button</button>
    </Tooltip>
  </div>
)

export default App
.tooltipContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 300px;
}

Props

NamePropTypeDescriptionDefault
labelPropTypes.stringTooltip contentHi!
positionPropTypes.stringTooltip position top, top-left, top-right, bottom, bottom-left, bottom-right, left and right.top
sizePropTypes.stringSets the font size of the text in tooltip13px
durationPropTypes.stringSpecifies the duration of the tootltip transition.18s
delayPropTypes.stringThe delay on hover before showing the tooltip0s
fontWeightPropTypes.stringThe font weight of the text in tooltipnormal
textTransformPropTypes.stringControls the casing of the textnone
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.1.0

7 years ago