@gluestack-ui/tooltip
TypeScript icon, indicating that this package has built-in type declarations

0.1.44 • Public • Published

@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.

Package Sidebar

Install

npm i @gluestack-ui/tooltip

Weekly Downloads

22,156

Version

0.1.44

License

none

Unpacked Size

34.2 kB

Total Files

26

Last publish

Collaborators

  • vidhi499
  • rohit_singh
  • viraj-10
  • rayan1810
  • rajat693
  • surajahmedc
  • meenumakkar
  • madhavb230100
  • vaibhk002
  • daminipandey
  • amars29
  • geekgautam
  • sravankumarvelangi
  • gluestackadmin
  • geekashwini
  • mayankp06