Tooltip
functionSource L22Open-code aq-ui accessible component family for Tooltip.
function Tooltip({ ...props }: TooltipPrimitive.Root.Props)- Props type
TooltipPrimitive.Root.Props
<Tooltip />
Open-code aq-ui accessible component family for Tooltip.
This is a live example. Interact with the available controls and use the keyboard to inspect the component's states and behavior.
pnpm dlx aq-ui@alpha add tooltipImport the parts you need, then jump to an export for its contract.
"use client"
import { Tooltip } from "@/components/ui/tooltip"
<Tooltip />Open-code aq-ui accessible component family for Tooltip.
function Tooltip({ ...props }: TooltipPrimitive.Root.Props)TooltipPrimitive.Root.PropsContent export for composing Tooltip.
const TooltipContent = React.forwardRef<React.ComponentRef<typeof TooltipPrimitive.Popup>, TooltipPrimitive.Popup.Props & Pick< TooltipPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" >>(…)TooltipPrimitive.Popup.Props & Pick< TooltipPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" >Provider export for composing Tooltip.
function TooltipProvider({ delay = 0, ...props }: TooltipPrimitive.Provider.Props)TooltipPrimitive.Provider.PropsTrigger export for composing Tooltip.
const TooltipTrigger = React.forwardRef<HTMLButtonElement, TooltipPrimitive.Trigger.Props>(…)TooltipPrimitive.Trigger.Propsutils
@base-ui/react@^1.7.0