Skip to content

hafffe/deku-tooltip

Repository files navigation

deku-tooltip Build Status

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.

License

MIT © Kevin Martensson