
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
@svelte-plugins/tooltips
Advanced tools
Supply Chain Security
Quality
Maintenance
Vulnerabilities
License
A simple tooltip action and component designed for Svelte.
Try it in the Svelte REPL.
yarn add -D @svelte-plugins/tooltips
# or with NPM
npm i -D @svelte-plugins/tooltips
<script>
import { Tooltip } from "@svelte-plugins/tooltips";
</script>
<Tooltip content="Hello world!">
Check out my tooltip
</Tooltip>
<script>
import { tooltip } from "@svelte-plugins/tooltips";
</script>
Checkout out my <u title="Hello World!" use:tooltip>tooltip</u>
Checkout out my <u use:tooltip={{ content: 'Hello World!' }}>tooltip</u>
Prop | Description | Value |
---|---|---|
content | The string or object containing componentref and props | string |
arrow | If false , the tooltip arrow will not be shown. | boolean (default: true ) |
animation | The animation to apply to the tooltip | string (default: ``) |
maxWidth | The max allowable width of the tooltip content | number (default: 200 ) |
position | The position where the tooltip should appear relative to its parent | string (default: top ) |
autoPosition | Adjust tooltip position if viewport clipping occurs | string (default: false ) |
Prop | Description | Value |
---|---|---|
content.component | Svelte component | component (default: null ) |
content.props | Any component propeties | object (default: null ) |
<script>
import ComponentAsTooltip from './ComponentAsTooltip';
</script>
Checkout out my <span use:tooltip={{ content: { component: ComponentAsTooltip, props: { title: 'Hello World!' } } }}>tooltip</span>
0.1.1 - 2022-08-21
FAQs
A simple tooltip action and component designed for Svelte.
The npm package @svelte-plugins/tooltips receives a total of 3,927 weekly downloads. As such, @svelte-plugins/tooltips popularity was classified as popular.
We found that @svelte-plugins/tooltips demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.