Usage

ReactDOM.render(
  <Tip
    title="Note:"
    content="Life is tough, but I'm tougher"
    type="info"
    width={200} />,
  document
);

API

name type default description
title String tip的title,不设置则没有title
content String tip的content
type String tip的类型,包括默认值,info,success,warning,danger
width Number tip的宽度

Copyright © 2017 MIT License