Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-tailwind-tooltip
Advanced tools
React tailwind tooltip is a React component for creating customizable tooltips using Tailwind CSS. It provides flexibility in tooltip placement, appearance, and behavior, making it easy to enhance user interfaces with informative tooltips.
React tailwind tooltip is a React component for creating customizable tooltips using Tailwind CSS. It provides flexibility in tooltip placement, appearance, and behavior, making it easy to enhance user interfaces with informative tooltips.
Install with npm:
npm install react-tailwind-tooltip
Install with yarn:
yarn add react-tailwind-tooltip
Install with pnpm:
pnpm add react-tailwind-tooltip
This project is licensed under the MIT License - see the LICENSE file for details.
For more information, issues, and contributions, visit the GitHub repository.
import React from 'react';
import { Tooltip } from 'react-tailwind-tooltip';
import 'react-tailwind-tooltip/dist/index.css';
const App = () => {
return (
<div className="p-6">
<Tooltip title="This is a tooltip!" placement="top" arrow>
<button className="px-4 py-2 bg-blue-500 text-white rounded">Hover me</button>
</Tooltip>
</div>
);
};
export default App;
Name | Type | Description |
---|---|---|
children | React.ReactNode | The element that the tooltip will be attached to. |
title | React.ReactNode | The content of the tooltip. |
placement* | top | bottom | left | right | TThe preferred position of the tooltip. Default bottom |
followCursor* | boolean | Whether the tooltip should follow the cursor. Default false |
arrow* | boolean | Whether to display an arrow pointing to the element. Default false |
open* | boolean | Control the visibility of the tooltip. |
tooltipStyle* | string | Style of the tooltip. Default bg-[#223354]/95 text-white text-sm |
arrowStyle* | string | Style of the arrow. Default to-[#223354]/95 |
enterDelay* | number | Delay in milliseconds before the tooltip appears. Default 100 |
leaveDelay* | number | Delay in milliseconds before the tooltip disappears. Default 100 |
onOpen* | (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void | Callback function triggered when the tooltip opens. |
onClose* | (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void | Callback function triggered when the tooltip closes. |
Props marked with * are not required.
FAQs
React tailwind tooltip is a React component for creating customizable tooltips using Tailwind CSS. It provides flexibility in tooltip placement, appearance, and behavior, making it easy to enhance user interfaces with informative tooltips.
The npm package react-tailwind-tooltip receives a total of 2 weekly downloads. As such, react-tailwind-tooltip popularity was classified as not popular.
We found that react-tailwind-tooltip 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.