Usage

ReactDOM.render(
  <Tooltip
    content="I'm a tooltip"
    type="top"
    width={200} />,
  document
);

API

name type default description
content String tooltip的content
type String tooltip的类型,包括默认值,top, top-left, top-right, right, right-top, right-bottom, bottom, bottom-left, bottom-right, left, left-top, left-bottom
width Number tooltip的宽度

Copyright © 2017 MIT License