reactour

Tourist Guide into your React Components

MIT License

Downloads
1.1M
Stars
3.8K
Committers
56

Bot releases are hidden (Show)

reactour - Leaving emotions… Latest Release

Published by elrumordelaluz about 2 years ago

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]

reactour - Adding new step props: observables + highlight selectors

Published by elrumordelaluz over 4 years ago

Thanks to the awesome @qboot work on #266 now is possible to:

  • highlight multiple elements passing an Array of selectors into the new step prop highlightedSelectors
  • redraw the svg mask when node mutations happens passing selectors to mutationObservables
  • redraw the mask when node resizes happens, passing them to resizeObservables.

More details on readme

reactour - disableFocusLock + roundedMask

Published by elrumordelaluz over 4 years ago

  • Add Round Mask #243
  • Add disableFocusLock #234
reactour - Custom Helper

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:

  • current (number)
  • content (string|func)
  • totalSteps (number)
  • gotoStep (func)
  • close (func)

Docs coming.

reactour - Add close function into step

Published by elrumordelaluz almost 6 years ago

Add close function into content (when is a function) on each stepso now is possible to:


const steps = [
  {
    selector: '.step2',
    content: ({ close }) => (
      <>You can <button onClick={close}>close</button> the Tour from here</>
    ),
  },
  //...
]

thanks @gdsrosa

reactour -

Published by elrumordelaluz almost 6 years ago

onAfterOpen and onBeforeClose will not apply styles to body to avoid scroll by default. Is up to the end user. Example in demo App.

reactour -

Published by elrumordelaluz over 6 years ago

  • Remove Controls Component when both flags showButtons and showNavigation are false
  • Pass startAt number as an argument to the internal open() method

Thanks @yossijacob for both contributions!

reactour - 💥Customization boom!

Published by elrumordelaluz over 6 years ago

New props

  • goToStep: let you programmatically jump to a step
  • getCurrentStep: let you get the current step index each time it changes
  • prevStep and nextStep: let you override default next and prev internal functions
  • disableKeyboardNavigation
  • disableDotsNavigation
  • accentColor: let you customize the --reactour-accent css variable
  • rounded: apply rounded corners in Highlighted elem and Guide

Step changes

  • selector step property now it's optional (render the content centered)

Awesome changes

  • Refactor mask with dynamic svg shape
  • Add Code conventions

Props to @qboot for the really clean code and descriptions in the PRs full of useful stuff.

reactour - Allow `center` as postion

Published by elrumordelaluz almost 7 years ago

thanks to @iamdey

reactour - Add `disableInteraction` prop

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 🎉

reactour - Add `badgeContent` prop

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

reactour - Update to styled-components 2.0.0

Published by elrumordelaluz over 7 years ago

reactour - Add `prevButton` and `nextButton`

Published by elrumordelaluz over 7 years ago

Allowing to change the string, useful for languages different than english.

Package Rankings
Top 1.1% on Npmjs.org
Related Projects