docs/components/display/Tooltip

Tooltip

Hover tooltip built on @kobalte/core.

import { Tooltip } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
content *string | JSX.ElementTooltip content to display.
placement'top' | 'bottom' | 'left' | 'right''top'Tooltip placement relative to the trigger.
delaynumber300Delay before showing tooltip in milliseconds.
children *JSX.ElementElement that triggers the tooltip.
classstringAdditional CSS classes.
unstyledbooleanfalseRemove all default styling classes.
openbooleanControl open state externally.
onOpenChange(open: boolean) => voidCallback when open state changes.

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-bg-primary
  • --sk-border
  • --sk-duration-instant
  • --sk-font-size-sm
  • --sk-radius-md
  • --sk-shadow-md
  • --sk-space-sm
  • --sk-space-xs
  • --sk-text-primary
  • --sk-z-tooltip