@beyzaerkan/vue-tooltip
v1.0.1
Published
A simple tooltip where you can give position, header, subtitle and body.
Downloads
3
Readme
Vue Tooltip
A simple tooltip where you can give position, header, subtitle and body.
Installation
$ npm i @beyzaerkan/vue-tooltip
Usage
<Tooltip
:text="{
header: '....',
subtitle: '....',
body: '....'
}"
position="...."
>
tooltip
</Tooltip>
Attributes
- position - This is the position of the tooltip
position: right position: left position: top position: bottom
- text - This is the content to be displayed in the tooltip
text: { header: String, subtitle: String, body: String }
Example Vue Page
<template>
<div>
<Tooltip
:text="{
header: `${header}`,
subtitle: `${subtitle}`,
body: `${body}`
}"
position="...."
>
tooltip
</Tooltip>
</div>
</template>
<script>
export default {
import Tooltip from "@beyzaerkan/vue-tooltip";
name: "App",
components: {
Tooltip,
},
data() {
return {
header: "....",
subtitle: "....",
body: "....",
};
},
};
</script>