An open API service indexing awesome lists of open source software.

https://github.com/siamahnaf/tooltip

A highly customizable advanced React tooltip component, offering extensive styling options to fit any design needs. It supports dynamic positioning, and custom triggers for enhanced interactivity. Easily integrate it into your NextJs project.
https://github.com/siamahnaf/tooltip

next-component react-component react-tooltip siamf-tooltip tooltip

Last synced: 12 days ago
JSON representation

A highly customizable advanced React tooltip component, offering extensive styling options to fit any design needs. It supports dynamic positioning, and custom triggers for enhanced interactivity. Easily integrate it into your NextJs project.

Awesome Lists containing this project

README

          




Siam Ahnaf



# @siamf/tooltip
A highly customizable advanced React tooltip component, offering extensive styling options to fit any design needs. It supports dynamic positioning, and custom triggers for enhanced interactivity. Easily integrate it into your `NextJs` project.

Buy Me A Coffee

- Customizations availability
- Easy to use
- Useable directly on `RSC`

# Demo

![image](https://github.com/siamahnaf/siamf-tooltip/blob/main/assets/one.png)
![image](https://github.com/siamahnaf/siamf-tooltip/blob/main/assets/all.png)

# Installation

```bash
$ npm i @siamf/tooltip
```

# Usage
```javascript


Hover Me

```

# Available props


Name
Description
Type
Default/Required


children
Child element
ReactNode | JSX.Element
required


content
Content to show on tooltip overlay
string | ReactNode
required


placement
Tooltip placement
"bottom" | "left" | "right" | "top" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" | "top-start" | "top-end"
"top"


trigger
Trigger Options
"hover" | "click"
"hover"


openDefault
Default open or not
boolean
false


offset
Tooltip and button distance
number
10


variant
The interactivity of tooltip style
"success" | "warning" | "error" | "info"
"info"


showArrow
Either show or hide arrow icon
boolean
true


arrowConfig
Arrow icon configurations
ArrowTypes



className
Classname for styling
string



styles
CSSProperties for styling inline
CSSProperties

### ArrowTypes


Name
Description
Type
Default/Required


width
Arrow icon width
number
14


height
Arrow icon height
number
7


radius
Arrow icon corner radius
number(0-15)
3


fill
Arrow icon color
string

## Connect with me