Skip to content

Add help argument to st.badge #12878

@arnaudmiribel

Description

@arnaudmiribel

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

Add support for st.badge(..., help="Some annotation on this badge") so that upon hovering a badge, the user can see a small tooltip explaining what this badge is about.

Why?

Image

I'm using st.badge more and more as a way to nicely add some metadata in my app. I found myself spontaneously hovering over some of them, looking for a definition :) thought maybe that's a feature!

How?

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.badgeRelated to the `st.badge` elementgood first issueGood for newcomers to the codebasetype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions