@jouwomgeving/ui-tooltip

Dictator package JO ui tooltip

Stats

StarsIssuesVersionUpdatedCreatedSize
@jouwomgeving/ui-tooltip
1.1.7a year ago5 years agoMinified + gzip package size for @jouwomgeving/ui-tooltip in KB

Readme

Tooltip

$ npm install @jouwomgeving/ui-tooltip

Usage

import Tooltip from '@jouwomgeving/ui-tooltip';

function Component() {
  return (
    <Tooltip
      content="Content of the tooltip"
      orientation="top-center"
    >
      <span>Hello world!</span>
    </Tooltip>
  );
}

export default Component;

About

A component that ads a tooltip to the child element.

Properties

Prop Values Default Required
children ReactElement true
content string false
orientation string top-center false

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.