Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@crave/farmblocks-tooltip
Advanced tools
A simple tooltip component.
npm install @crave/farmblocks-tooltip
A text or children must be supplied, otherwise the tooltip won't be rendered.
Property | Description | Type | Default |
---|---|---|---|
children | content to be rendered inside the tooltip | React.Node | |
text | tooltip text | string | |
isVisible | controls its visibility | bool | true |
positionX | controls its position on axis X relatively to the parent | one of "left" , "right" , "center" or "auto" | "left" |
positionY | controls its position on axis Y relatively to the parent | one of "top" , "bottom" , or "auto" | "bottom" |
boundariesSelector | (only for align="auto" ) A CSS selector for a container which will define the limits for the tooltip. If not defined, the limit will be the browser's viewport | string | |
zIndex | zIndex value | number | 1000 |
hideArrow | controls arrow visibility | bool | false |
padding | content padding | string | "8px" |
offset | distance from the container to the tooltip | string | "15px" |
overflow | overrides the default overflow property. Note that when overflow=hidden the arrow will be hidden as well | string | |
fullScreenBreakpoint | up to this window width, the tooltip will take the whole screen. Note that you must provide a way to close the tooltip | string |
MIT
FAQs
Tooltip component
The npm package @crave/farmblocks-tooltip receives a total of 2 weekly downloads. As such, @crave/farmblocks-tooltip popularity was classified as not popular.
We found that @crave/farmblocks-tooltip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.