
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@gluestack-ui/tooltip
Advanced tools
A universal headless tooltip component for React Native, Next.js & React
To use @gluestack-ui/tooltip
, all you need to do is install the
@gluestack-ui/tooltip
package:
$ yarn add @gluestack-ui/tooltip
# or
$ npm i @gluestack-ui/tooltip
Whether you need to provide helpful hints to new users or display extra details for power users, the Tooltip component is a simple and effective way. Here's an example how to use this package to create one:
import { Root, Content } from '../components/core/tooltip/styled-components';
import { createTooltip } from '@gluestack-ui/tooltip';
export const Tooltip = createTooltip({
Root,
Content,
});
Default styling of all these components can be found in the components/core/tooltip file. For reference, you can view the source code of the styled tooltip
components.
// import the styles
import { Root, Content } from '../components/core/tooltip/styled-components';
// import the createTooltip function
import { createTooltip } from '@gluestack-ui/tooltip';
// Understanding the API
export const Tooltip = createTooltip({
Root,
Content,
});
// Using the tooltip component
export default () => (
<Tooltip>
<TooltipContent />
</Tooltip>
);
More guides on how to get started are available here.
FAQs
A universal headless tooltip component for React Native, Next.js & React
The npm package @gluestack-ui/tooltip receives a total of 20,894 weekly downloads. As such, @gluestack-ui/tooltip popularity was classified as popular.
We found that @gluestack-ui/tooltip demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.