1.2.0 • Published 2 years ago

@react-sandbox/tooltip v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago