README
@acodez/tooltip
Installation
npm install @acodez/tooltip
Props API
Property | Type | Required | Default value | Description |
---|---|---|---|---|
text | string |
yes | |
tooltip text |
width | string |
no | |
tooltip width |
position | string |
no | `` | tooltip position 'right' , 'left' , 'top' |
Usage
import Tooltip from '@acodez/tooltip';
import '@acodez/tooltip/dist/index.css';
<Tooltip text="Create" position="right" >
<component/>
</Tooltip>