Tooltip
A short label or clarification that appears on hover and keyboard focus.
- Family
- Instruction
- Available import
@/components/ui/tooltip- Status
- Thorbis wrapper and live specimen ship here.
tooltip- Use
- Use to name an icon-only control or clarify unfamiliar compact notation.
- Avoid
- Do not hide required instructions, actions, rich content, or touch-only information inside it.
Use this component
GitHub source links require access to the private Thorbis design repository.
Wrapper sourceRepository and dependencies
- Value exports
TooltipTooltipContentTooltipProviderTooltipTrigger
- Type exports
- None.
Setup, styles, and dependencies
These are React wrappers in the Thorbis design repository, not an installable npm UI package. In this repository, @/ resolves to src/ through tsconfig.json.
Use the repository's package.json and package-lock.json for dependencies. Load src/styles.css once at the application root for global tokens, typography, and themes. The wrappers compose colocated StyleX owners; include the generated token CSS and extracted StyleX output.
For another project, bring the wrapper and its transitive local imports, configure the alias, install the dependencies those files use, and provide the same token and style setup. Review the source before copying; the direct imports below are not a complete dependency closure.
Interactive examples require client-side React. This TanStack Start site server-renders and hydrates React; another host must hydrate or render the component on the client. Example code is the same TypeScript source used by its live preview.
Direct imports in this wrapper:
./tooltip.stylex@radix-ui/react-tooltip@stylexjs/stylexreact
Tooltip provider and visible action
Focus or hover the link for supplementary help. Its visible label and destination work without the tooltip. Keep TooltipProvider above the trigger and content.
Read the complete example
import { Button } from "@/components/ui/button";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
export function HelpTooltipExample() {
return (
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Button variant="secondary" asChild><a href="/components">Browse components</a></Button>
</TooltipTrigger>
<TooltipContent>Find an adopted wrapper and its usage contract.</TooltipContent>
</Tooltip>
</TooltipProvider>
);
}
Adoption contract
- Start from the ShadCN accessible source primitive; keep upstream keyboard and focus behavior.
- Use Thorbis color, type, space, radius, shadow, and motion tokens only.
- Design hover, focus, selected, disabled, loading, empty, error, offline, and reduced-motion states where they apply.
- Verify desktop and 390px mobile, keyboard order, accessible names, and stable async geometry.