react-toolbox/components/tooltip
Javi Velasco 67ab8746a9 Proper import path for documentation files 2015-11-10 11:07:43 +01:00
..
_config.scss Clever way to auto-hide <Tooltip> (full CSS) 2015-11-05 13:30:57 +07:00
index.jsx Remove 'active' property (it's a state) 2015-11-06 00:49:55 +07:00
readme.md Proper import path for documentation files 2015-11-10 11:07:43 +01:00
style.scss Control visibility with JavaScript (decoupled way for any kind of element or <Component>) 2015-11-06 00:44:10 +07:00

readme.md

Tooltip

A tooltip is Useful for show information on hover in any kind of component. Out of the box react-toolbox offers you a property tooltip in the component <Button>.

import Button from 'react-toolbox/lib/button';
import Tooltip from 'react-toolbox/lib/tooltip';

const TooltipTest = () => (
  <div>
    <p>
      Lorem ipsum dolor sit amet, <strong>consectetur<Tooltip label='This is a auto show tooltip' /></strong> adipiscing elit.
    </p>
    
    <Button label='Button with tooltip' kind='raised' accent tooltip='This is a tooltip by property' />
  </div>
);

Properties

Name Type Default Description
className String '' Set a class to style the Component.
label String The text string to use for the tooltip.