vdux-tooltip
Simple tooltip component
Last updated 5 years ago by ashaffer88 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vdux-tooltip 
SYNC missed versions from official npm registry.

tooltip

js-standard-style

Simple tooltip component

Installation

$ npm install vdux-tooltip

Usage

Renders your message as a tooltip over children when the user lingers over children.

import Tooltip from 'vdux-tooltip'

function render () {
  return (
    <Tooltip message='Signup today!' delay={400}>
      <button>Register</button>
    </Tooltip>
  )
}

API - props

  • ui - Optional, defaults to vdux-ui's Tooltip component. This is the UI element used to render your tooltip component
  • message - The content of the tooltip. This may be just a string or it may be JSX elements.
  • placement - Defaults to left. One of top/right/bottom/left. Specifies where the tooltip should appear relative to the container.
  • space - Optional. Defaults to 0. Add extra padding away from the element when the tooltip is positioned.
  • ...rest - Any other props will be forwarded to the tooltip UI component.

API - children

The children of the tooltip are what the tooltip is for. They are rendered normally as if the tooltip wasn't there.

License

MIT

Current Tags

  • 1.2.4                                ...           latest (5 years ago)

10 Versions

  • 1.2.4                                ...           5 years ago
  • 1.2.3                                ...           5 years ago
  • 1.2.2                                ...           5 years ago
  • 1.2.1                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (12)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |