React Joyride

Create guided tours in your apps

README

React Joyride

undefined CI undefined undefined
Joyride example image

Create awesome tours for your app!


Showcase your app to new users or explain functionality of new features.

It uses react-floater for positioning and styling.
And you can use your own components too!

View the demo here (or the codesandbox examples)

Read the docs

Talk about it on the Discussions board.

Setup


  1. ``` sh
  2. npm i react-joyride
  3. ```

Getting Started


  1. ``` js
  2. import Joyride from 'react-joyride';

  3. export class App extends React.Component {
  4.   state = {
  5.     steps: [
  6.       {
  7.         target: '.my-first-step',
  8.         content: 'This is my awesome feature!',
  9.       },
  10.       {
  11.         target: '.my-other-step',
  12.         content: 'This another awesome feature!',
  13.       },
  14.       ...
  15.     ]
  16.   };

  17.   render () {
  18.     const { steps } = this.state;

  19.     return (
  20.       <div className="app">
  21.         <Joyride
  22.           steps={steps}
  23.           ...
  24.         />
  25.         ...
  26.       </div>
  27.     );
  28.   }
  29. }
  30. ```

If you need to support legacy browsers you need to include the scrollingelement polyfill.


Development


Setting up a local development environment is easy!

Clone (or fork) this repo on your machine, navigate to its location in the terminal and run:

  1. ``` sh
  2. npm install
  3. npm link # link your local repo to your global packages
  4. npm run watch # build the files and watch for changes
  5. ```

Now clone https://github.com/gilbarbara/react-joyride-demo and run:

  1. ``` sh
  2. npm install
  3. npm link react-joyride # just link your local copy into this project's node_modules
  4. npm start
  5. ```

Start coding! 🎉