viskan-deku-tooltip
v1.0.1
Published
Tooltip component for Deku
Downloads
3
Readme
deku-tooltip
Tooltip component for Deku
Install
$ npm install --save deku-tooltip
Usage
import Tooltip from 'deku-tooltip';
const render = () => {
return (
<Tooltip content='Hello world!'>
Hover me!
</Tooltip>
);
};
export default {render};
API
class
Type: string
Class on the container element.
component
Type: string
Default: span
HTML tag on the container element.
content
Type: string
Content that should appear in the tooltip.