Unkey
Components

InfoTooltip

The Info Tooltip is a specialized tooltip component that provides contextual information about elements in a consistent and accessible way. It's built on top of the base Tooltip component with additional styling and positioning options.

Features

  • Customizable positioning (top, right, bottom, left)
  • Alignment control (start, center, end)
  • Side offset adjustment
  • Disabled state support
  • Child element support via asChild prop

Usage

InfoTooltip Position Side

Props

PropTypeDefaultDescription
contentReact.ReactNode-The content to display in the tooltip
positionTooltipPosition-Configuration for tooltip positioning
disabledbooleanfalseWhether the tooltip is disabled
asChildbooleanfalseWhether to render the trigger as a child element
delayDurationnumber-Delay before showing the tooltip in milliseconds
variantstring-Styling variant for the tooltip
classNamestring-Additional CSS classes for the tooltip

Position Configuration

The position prop accepts an object with the following properties:

PropertyTypeDefaultDescription
side"top" | "right" | "bottom" | "left""right"The side where the tooltip appears
align"start" | "center" | "end""center"The alignment of the tooltip
sideOffsetnumber-The offset from the side in pixels

On this page