Use floatingUIOption #2303
Replies: 1 comment 6 replies
-
Use |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had attempted to use Floating UI Option but it seems like I am not doing something right, because when I added the code it then the tour does not start. I only want to push the popper away from the element by 10px.
tour.addStep({ id: 'step1', text: 'Text for step', scrollTo: { behavior: 'smooth', block: 'center' }, attachTo: { element: '.test', on: 'bottom' }, floatingUIOptions: { middlewares: [offset({ mainAxis: 0, crossAxis: 12 })] }, buttons: [{ text: 'Next', action: tour.next }] });
Beta Was this translation helpful? Give feedback.
All reactions