Here are the examples for the Tour package
This is the minimal example
Example to show the customizable behavior of the Mask click event. Try clicking the Mask and the Tour will proceed to the next step.
onClickMask
DocsExample to show the customizable behavior of the Close click event. Try clicking the 'x' and the Tour will proceed to the next step.
onClickClose
DocsExample to show the customizable behavior of the Close click event. Try clicking the 'x' and the Tour will proceed to the next step.
disableKeyboardNavigation
DocsUse smooth scroll between steps if they aren't visible in viewport
scrollSmooth
DocsCustom wrapper, mask and popover paddings
padding
DocsCustom Prev and Next button
prevButton
DocsnextButton
DocsControl currenStep externally. Useful when using global state.
setCurrentStep
DocscurrentStep
DocsRTL mode
rtl
DocsCustom Tour, Mask and Popover components and parts styles
styles
DocsIn this example, we are usingafterOpen
prop to lock the Y scroll and re-enable it throughbeforeClose
prop.
afterOpen
DocsbeforeClose
DocsCreate a custom Badge content
badgeContent
DocsDisable navigating through click in dots buttons
disableDotsNavigation
DocsDisable highlighted area interaction. This example shows how to disable the default behavior and how to add an extra functionality when clicking this area. Try to select the highlighted text.
disableInteraction
DocsToggle Navigation parts as you want
showBadge
DocsshowCloseButton
DocsshowNavigation
DocsshowPrevNextButtons
DocsshowDots
DocsStart Tour at specific step. Keep in mind that the number is zero based, so 2 is the third step.