Skip to content

Conversation

@zenstacker
Copy link

@zenstacker zenstacker commented Nov 23, 2025

Note

Cleans and strengthens TypeScript defs for react-tippy, refining TooltipProps and changing withTooltip to return React.ComponentType<P>.

  • Types:
    • TooltipProps: Reorganized and documented; strengthened types (e.g., html: React.ReactNode instead of ReactElement<any>, popperOptions: Record<string, unknown> instead of any).
    • Styling/Behavior: Explicit theme, className, style, timing/animation, and sticky props clarified; added docs for core utility types (Position, Trigger, Animation, Size, Theme).
  • API:
    • withTooltip: Return type changed from JSX.Element to React.ComponentType<P>.
  • Cleanup:
    • Removed legacy comments/TODOs; added concise JSDoc annotations.

Written by Cursor Bugbot for commit 96ea953. This will update automatically on new commits. Configure here.

@github-actions
Copy link
Contributor

CLA Signature Action:

Thank you for your submission, we really appreciate it. We ask that you read and sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just by adding a comment to this pull request with this exact sentence:

I have read the CLA Document and I hereby sign the CLA

By commenting with the above message you are agreeing to the terms of the CLA. Your account will be recorded as agreeing to our CLA so you don't need to sign it again for future contributions to this repository.

0 out of 1 committers have signed the CLA.
@zenstacker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants