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

Tooltip API across multiple components (Button/Badge/Checkbox/Icon/...) #3121

Open
BeraSenol opened this issue Jan 16, 2025 · 0 comments
Open
Labels
enhancement New feature or request triage v3 #1289

Comments

@BeraSenol
Copy link

BeraSenol commented Jan 16, 2025

Description

Instead of wrapping a component with UTooltip, a :tool-tip prop could maybe be provided by default in some click/hover based components (limited to just strings)?

<UTooltip text="Flip Chessboard">
    <UButton icon="i-material-symbols-sync" @click="flipChessboard()" />
</UTooltip>

=>

<UButton tooltip="Flip Chessboard" icon="i-material-symbols-sync" @click="flipChessboard()" />

Additional context

I was thinking it could be a handy features since a lot of websites contain clickable/hoverable symbols for their social media/github link/settings/etc. a simple. default tooltip could be very handy. Thanks for your time!

@BeraSenol BeraSenol added enhancement New feature or request triage v3 #1289 labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant