Components
Tooltips
Image Tooltip

Image Tooltip

Image Tooltip component displays an image tooltip on hover, offering visual context and details about the hovered item.

Tooltip Image Reveal Animation

Outside of programming, being a mountain guy from
Uttarakhand
, I enjoy mountain trekking and exploring valleys. Right now I live in
Chandigarh
. If you are around, feel free to reach me out, we could have some chai or work together.

Installation

Run the following command:

npx gopx-webui add image-tooltip

Props

PropTypeRequiredDescription
textstringYesThe text that will be displayed within the tooltip.
IconReact.FC<SVGProps<SVGSVGElement>>NoAn optional SVG icon component to be displayed alongside the text.
hoverImage{ src: string; alt: string; width: number; height: number; }NoAn optional object containing the source URL, alt text, width, and height of the image to be displayed on hover.