Tooltip Example

How to use this tooltip

Props

NameTypeDefaultDescription
delayDurationnumber700The duration from when the mouse enters a tooltip trigger until the tooltip opens.
skipDelayDurationnumber300How much time a user has to enter another trigger without incurring a delay again.
disableHoverableContentboolean-Prevents Tooltip.Content from remaining open when hovering. Disabling this has accessibility consequences.
defaultOpenboolean-The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state.
openboolean-The controlled open state of the tooltip. Must be used in conjunction with onOpenChange.
onOpenChange(open: boolean) => void-Event handler called when the open state of the tooltip changes.
delayDurationnumber-Override the duration given to the Provider to customise the open delay for a specific tooltip.
disableHoverableContentboolean-Prevents Tooltip.Content from remaining open when hovering. Disabling this has accessibility consequences. Inherits from Tooltip.Provider.

Playground

Import from filigran-ui :

Import {Tooltip, TooltipContent, TooltipProvider, TooltipTrigger,} from 'filigran-ui'


          <TooltipProvider>
  <Tooltip>
    <TooltipTrigger>Hover</TooltipTrigger>
    <TooltipContent>
      <p>Add to library</p>
    </TooltipContent>
  </Tooltip>
</TooltipProvider>