You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@gluestack-ui/tooltip

Package Overview
Dependencies
Maintainers
16
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gluestack-ui/tooltip

A universal headless tooltip component for React Native, Next.js & React

0.1.44
latest
Source
npmnpm
Version published
Weekly downloads
25K
12.57%
Maintainers
16
Weekly downloads
 
Created
Source

@gluestack-ui/tooltip

Installation

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

Usage

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,
});

Customizing the tooltip:

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.

Keywords

react

FAQs

Package last updated on 11 Mar 2025

Did you know?

Socket

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.

Install

Related posts