How to manage buttons property in TeachingPopover #33857
-
In TeachingPopover there's two props in TeachingPopoverFooter for primary and seconday buttons, but I dont undertand how I can assign onClick properties for earch of these |
Beta Was this translation helpful? Give feedback.
Answered by
ValentinaKozlova
May 23, 2025
Replies: 1 comment
-
Hello @Lxlo182, <TeachingPopoverFooter
primary={{ children: 'Learn more', onClick: handlePrimaryClick }}
secondary="Got it"
/> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ValentinaKozlova
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @Lxlo182,
There's mention in documentation that both actions use Button slots. In this case you use it as usual slots.
I created an example for you. I hope it helps:
https://stackblitz.com/edit/gvjo3pvu-4fzegruq?file=src%2Fexample.tsx