Rendering to a portal #586
-
Is there any solution to render the tour component into a portal? <TourProvider
scrollSmooth
showBadge={false}
showDots={false}
showCloseButton={false}
steps={tourSteps}
ContentComponent={ContentComponent}
Wrapper={(props: PropsWithChildren) =>
createPortal(props.children, document.body)
}
/> |
Beta Was this translation helpful? Give feedback.
Answered by
elrumordelaluz
Sep 6, 2023
Replies: 1 comment 1 reply
-
Hi @rizkimcitra, thanks for open the Issue. Please let me know if this approach works on your end. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rimzzlabs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @rizkimcitra, thanks for open the Issue.
The demo is using a Wrapper, which is using a Portal.
Please let me know if this approach works on your end.