1.2.0 • Published 8 months ago

@react-sandbox/tooltip v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Usage

Install

Install the @react-sandbox/tooltip package:

npm install @react-sandbox/tooltip

Import

Import the Tooltip component:

import React from 'react'
import Tooltip from '@react-sandbox/tooltip'

function App() {
  return (
    <Tooltip title="Download ✅">
      <button>Save</button>
    </Tooltip>
  )
}

Props

PropTypeDefaultDescription
titlestringrequiredText content
position'top' \| 'bottom' \| 'left' \| 'right''top'Position of tooltip
delay0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 750 \| 1000200Initial transition delay
disabledbooleanfalseVisible or not
classNamestring-CSS classes
styleReact.CSSProperties-CSS styles

Development

Local

yarn
yarn dev

Storybook

yarn storybook

Tests

yarn test

License

MIT

1.2.0

8 months ago

1.1.0

9 months ago

1.0.5

9 months ago

1.0.4

10 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago