How to integrate analytics-related data attributes in React Aria Components #8362
-
Hi team 👋, I'm using For example, I’m using a <ToggleButton id="planning">
Planning Mode
</ToggleButton> In this case:
So the expected DOM output should be: <button id="bt-day-plan-planning-mode">Planning Mode</button> ❓ My Question:Is there a supported way in I would appreciate any suggestions or best practices for integrating analytics into this setup. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for raising this issue! I’m also running into the same problem and would appreciate any updates or suggested workarounds. Looking forward to a fix or recommended approach from the maintainers. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the discussion. We support |
Beta Was this translation helpful? Give feedback.
Thanks for the discussion. We support
data-*
attributes on the root node of every React Aria Component. Could you use that instead?