Replies: 2 comments 3 replies
-
I think we could include 'translate'. I think we'd push for people to use Tooltip instead of title. Would that suit your needs? What were the others you needed? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I had the same issue, and I came up with a solution, but I honestly don't know if it's, um, the proper React way? Anyway, I do something like this... I have a wrapper button component with my own props. Here's the minimized pseudo code:
I realize it's a bit of code just to get a title added, but this also applies to any HTML button attributes that are missing on the Aria Button. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to pass some attributes like translate and title to the Button component, which are default HTML attributes for tags like
<button>
. I haven't managed to find a solution for this in the react-aria-component documentation, and I can see from the Button code that it's not possible. Could you please help me find a workaround? Thank you in advance.Beta Was this translation helpful? Give feedback.
All reactions