Skip to content

How to manage buttons property in TeachingPopover #33857

Answered by ValentinaKozlova
Lxlo182 asked this question in Q&A
Discussion options

You must be logged in to vote

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

<TeachingPopoverFooter
  primary={{ children: 'Learn more', onClick: handlePrimaryClick }}
  secondary="Got it"
/>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ValentinaKozlova
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants