
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
v-tooltip-lite
Advanced tools
A lightweight and customizable Vue 3 tooltip/dropdown component with support for hover and click triggers, customizable placement, offset, and arrow styles, featuring accessibility and responsive design.
hover and click triggers for flexible interaction.top, bottom, left, right, etc.).# npm
npm install v-tooltip-lite
# yarn
yarn add v-tooltip-lite
# pnpm
pnpm add v-tooltip-lite
Don't forget to follow me on GitHub!
Below are examples demonstrating different configurations of the Vue Tooltip component.
A simple tooltip with hover trigger and default bottom placement.
<script setup>
import ToolTip from 'v-tooltip-lite'
import 'v-tooltip-lite/style.css'
</script>
<template>
<div>
<h3>Basic Tooltip</h3>
<ToolTip content="This is a tooltip">
<template #trigger>
<button>Hover Me</button>
</template>
</ToolTip>
</div>
</template>
You must import the CSS styles:
import 'v-tooltip-lite/dist/style.css'
A tooltip that appears on click and closes on another click.
<ToolTip content="Click again to close!" trigger="click" placement="top">
<template #trigger>
<button>Click Me</button>
</template>
</ToolTip>
A tooltip without the arrow for a cleaner look.
<ToolTip content="No arrow tooltip" :arrow="false" placement="right">
<template #trigger>
<button>Hover Me</button>
</template>
</ToolTip>
A tooltip with custom HTML content.
<ToolTip placement="bottom">
<template #trigger>
<button>Custom Content</button>
</template>
<template #default>
<div style="text-align: left">
<h4>Custom Content</h4>
<p style="margin-top: 4px; font-size: 0.7rem">
You can place <code>HTML</code> here, including formatting.
</p>
</div>
</template>
</ToolTip>
A tooltip with long text that wraps within the maximum width.
<ToolTip
content="This is a very long tooltip text that will wrap and test the max width of the tooltip. Keep hovering to read all of it."
placement="bottom">
<template #trigger>
<button>Hover Me</button>
</template>
</ToolTip>
| Prop | Type | Default | Description |
|---|---|---|---|
content | string | '' | The tooltip content (used if no default slot is provided). |
placement | string | 'bottom-end' | Popper.js placement (e.g., top, bottom, left, right, etc.). |
offset | [number, number] | [0, 8] | Offset for the tooltip from the trigger element [skidding, distance]. |
trigger | 'hover' | 'click' | 'hover' | Trigger mode for showing/hiding the tooltip. |
arrow | boolean | true | Whether to display the tooltip arrow. |
triggerClass | string | '' | Class to be applied to the trigger element. |
styles | Record<string, string> | {} | Custom styles for the tooltip container. |
teleport | boolean | true | Whether to teleport the tooltip to the body. |
isOpen | boolean | undefined | Whether the tooltip is open. |
ignoreClickOutside | string[] | [] | Array of CSS selectors to ignore click outside of. |
| Event | Description |
|---|---|
onShow | Emitted when the tooltip becomes visible. |
onHide | Emitted when the tooltip is hidden. |
Customize the appearance using the following CSS variables defined in style.css:
:root {
--tooltip-bg: #000000;
--tooltip-text: #ffffff;
--tooltip-border: rgba(255, 255, 255, 0.1);
--tooltip-radius: 0.375em;
--tooltip-shadow:
0 0.625em 1.5625em -0.3125em rgba(0, 0, 0, 0.1), 0 0.25em 0.375em -0.125em rgba(0, 0, 0, 0.05);
--tooltip-arrow-size: 0.475em;
--tooltip-z-index: 999989;
--tooltip-font-size: 0.75em;
--tooltip-line-height: 1.4;
--tooltip-padding: 0.6em 0.5em;
--tooltip-min-width: 3.125em;
}
FAQs
Lightweight, Customizable Tooltip/Dropdown Component for Vue 3
The npm package v-tooltip-lite receives a total of 65 weekly downloads. As such, v-tooltip-lite popularity was classified as not popular.
We found that v-tooltip-lite demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.