Installation
- CLI
- Manual
Usage
TheTooltip.Provider component should be placed once in your root layout, wrapping all content that will contain tooltips. This ensures that only one tooltip within the provider can be open at a time.
src/routes/+layout.svelte
showLineNumbers
Nested Providers
You can nest providers to create groups with different settings. Tooltips use the closest ancestor provider. This is useful when you want instant tooltips in specific areas:Changelog
2025-12 Update tooltip colors
We’ve updated the tooltip colors to use the foreground color for the background and the background color for the foreground. Replacebg-primary text-primary-foreground with bg-foreground text-background for <Tooltip.Content />.