Skip to content

Conversation

@nknwns
Copy link
Contributor

@nknwns nknwns commented Mar 20, 2025

What do you think about plain text support for useTippy?

We use such a composable in our projects.

export function useTippyText(target, content) {
  return useTippy(target, { content })
}

useTippyText(button, 'Confirm call');

I tried to remove the props recalculation if we passed mayBeRef<string> specifically.
I also created some utilities and types. Unfortunately, it will take too long to type perfectly, so far so.

P.S.
We can simply create a useTippyText in composables folder and abandon all these manipulations in PR. What do you think?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant