@hanzo/ui

TooltipAnchor

import { TooltipAnchor } from '@hanzo/ui/product'

No examples yet.

Types

export type TooltipSide = 'top' | 'right' | 'bottom' | 'left'
export type TooltipAnchorProps = {
  /** The hint. Empty or absent renders the child untouched. */
  description?: string
  children: ReactNode
  /** Which edge the hint sits on. Defaults to `top`. */
  side?: TooltipSide
  /** Delay before it opens, in ms. */
  delayMs?: number
  /**
   * By default the hint also becomes the child's `aria-label`, because the
   * control it labels usually has no text of its own. Turn this off when the
   * child already names itself and the hint only elaborates — two names on one
   * control is worse than none.
   */
  label?: boolean
}

Exports

TooltipAnchortype TooltipSidetype TooltipAnchorProps