Skip to content

Repository files navigation

Build statusDependenciesBuild sizePackage downloads

Example

💬 Lightweight, customizable tooltip component.

Usage

Install

Install the @react-sandbox/tooltip package:

npm install @react-sandbox/tooltip

Import

Import the Tooltip component:

importReactfrom'react'importTooltipfrom'@react-sandbox/tooltip'functionApp(){return(<Tooltiptitle="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

About

💬 Lightweight text tooltip

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages