Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-toggletip

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-toggletip

Simple toggletip and tooltip for your react apps

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-toggletip

npm version Build Status

Simple toggletip and tooltip for your react apps

toggletip

Why?

I wanted a simple light-weight tooltip library for react that just does one good thing and does it well - displaying tooltips on hover

For context as to why it's called a "toggletip", read this blog for details

Features

  • works on all mainstream browsers
  • css only tooltip without additional javascript dependencies
  • uses aria attributes for accessibility and to work with screen readers
  • works on icons and other elements
  • supports multiline tooltips

Installation

$ npm install --save react-toggletip

or if you are using yarn

$ yarn add react-toggletip

Demo

https://rcdexta.github.io/react-toggletip

Documentation

ToggleTip component will render a info icon by default. The default icon can be overridden with props given below. If you want to display tooltips over custom content, wrap ToggleTip around the content.

NameTypeDescription
contentString or array of stringsThe tooltip content. Pass array of strings if you want multiline tooltips
placementstringone of bottom-right, bottom, bottom-left,right,left,top-right,top,top-left
animatedbooleanDisable tooltip animations. Default: true
iconnodeReplace info icon with custom icon
childrennodeDisplay tooltip on top of custom content instead of icons

License

MIT

Keywords

FAQs

Package last updated on 05 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc