Skip to content

v2.0.9 - Global tooltip design

Choose a tag to compare

@RentnerKev RentnerKev released this 08 Oct 11:24
· 38 commits to main since this release

RentnerKev release banner

Global provider design

TooltipProvider now accepts customDesign?: TooltipCustomDesign. Configure a shared design once and let CustomTooltip inherit it automatically.

<TooltipProvider
    customDesign={{ contentClasses: 'text-sm', arrowClasses: 'fill-slate-900' }}
>
    <CustomTooltip content="Shared design">
        <button type="button">Details</button>
    </CustomTooltip>
    <CustomTooltip
        content="Local content override"
        customDesign={{ contentClasses: 'font-semibold' }}
    >
        <button type="button">Publish</button>
    </CustomTooltip>
</TooltipProvider>
  • Local overrides replace only the supplied design properties. Nested providers inherit and override their parent design without affecting siblings or mutating design objects.
  • Nested design scopes keep the outer Radix provider, opening delay, skip-delay window and hover behavior. Defaults, standalone usage, focus, keyboard, disabled triggers, portals and controlled open state retain their existing behavior.
  • Public provider/design types are available through the root, tooltip and types entries. README, API guide, playground and changelog include global and scoped examples.
  • Regression coverage includes inheritance and isolation, all three browser engines, accessibility, SSR/hydration, and packed JavaScript/declarations in Bundler and NodeNext consumers.

Changes since 2.0.8

Release · v2.0.9

Stable Release · Published on 8 October 2026

Changelog

v2.0.8...v2.0.9

🐛 Fixes

  • inherit tooltip designs from the native provider (9ff3535)

📝 Docs

  • link README to package website documentation (be83597)

✅ Tests

  • stabilize tooltip design checks across scroll boundaries (507f702)