Tourist Guide into your React Components
MIT License
Bot releases are hidden (Show)
Since this release, the package doesn't depends anymore on a css-in-js library (emotion
) for styling and layouts calculations.
@reactour/[email protected]
@reactour/[email protected]
@reactour/[email protected]
Published by elrumordelaluz over 4 years ago
Thanks to the awesome @qboot work on #266 now is possible to:
highlightedSelectors
mutationObservables
resizeObservables
.More details on readme
Published by elrumordelaluz over 4 years ago
Published by elrumordelaluz over 5 years ago
Now is possible to pass CustomHelper
prop with a component that receive the following props to handle content, status and behaviour:
Docs coming.
Published by elrumordelaluz almost 6 years ago
Add close
function into content (when is a function) on each step
so now is possible to:
const steps = [
{
selector: '.step2',
content: ({ close }) => (
<>You can <button onClick={close}>close</button> the Tour from here</>
),
},
//...
]
thanks @gdsrosa
Published by elrumordelaluz over 6 years ago
goToStep
: let you programmatically jump to a stepgetCurrentStep
: let you get the current step index each time it changesprevStep
and nextStep
: let you override default next and prev internal functionsdisableKeyboardNavigation
disableDotsNavigation
accentColor
: let you customize the --reactour-accent
css variablerounded
: apply rounded corners in Highlighted elem and Guide
selector
step property now it's optional (render the content centered)Props to @qboot for the really clean code and descriptions in the PRs full of useful stuff.
Published by elrumordelaluz almost 7 years ago
thanks to @iamdey
Published by elrumordelaluz about 7 years ago
This new prop don't allow to interact with the highlighted elem
.
Also added the prop highlightedMaskClassName
to customise this new layer.
Thanks to @msliva for the idea and congrats for the first PR 🎉
Published by elrumordelaluz about 7 years ago
Allows to customize the content with two params current
step and total
step.
i.e
<Tour
onRequestClose={closeTour}
steps={[…]}
isOpen={true}
badgeContent={(cur, tot) => `${cur} of ${tot}`}
/>
or something more complex like
<Tour
onRequestClose={closeTour}
steps={[…]}
isOpen={true}
badgeContent={(cur, tot) => cur === 1 ? 'welcome!' : `${cur}/${tot}`}
/>
Thanks to @jovstern for the idea
Published by elrumordelaluz over 7 years ago
Published by elrumordelaluz over 7 years ago
Allowing to change the string
, useful for languages different than english.