Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Tooltip: simplify the usage of displaying text #2289

Closed
capdiem opened this issue Dec 19, 2024 · 0 comments · Fixed by #2295
Closed

[Feature Request] Tooltip: simplify the usage of displaying text #2289

capdiem opened this issue Dec 19, 2024 · 0 comments · Fixed by #2295
Labels

Comments

@capdiem
Copy link
Contributor

capdiem commented Dec 19, 2024

Proposal and motivation

Typically, the content displayed by the Tooltip component is a string. However, the current usage requires defining a RenderFragment type for ChildContent, which can be quite inconvenient.

The new API plans to introduce a string type parameter called Text.

<MTooltip Text="tooltip">
  <ActivatorContent>
    <MButton @attributes="@context.Attrs">Button</MButton>
  </ActivatorContent>
</MTooltip>

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant