Coder Social home page Coder Social logo

craigmichaelmartin / react-joyride Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gilbarbara/react-joyride

1.0 3.0 0.0 7.36 MB

Create guided tours in your apps

Home Page: https://2zpjporp4p.codesandbox.io/

License: MIT License

JavaScript 100.00%

react-joyride's Introduction

React Joyride

Joyride example image

Create awesome tours for your app!

Use it to 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 if you want.

View the demo here

Setup

npm i react-joyride@next

Getting Started

import Joyride from 'react-joyride';

export class App extends React.Component {
  state = {
    run: false,
    steps: [
      {
        target: '.my-first-step',
        content: 'This is my awesome feature!',
      },
      {
        target: '.my-other-step',
        content: 'This another awesome feature!',
      },
      ...
    ]
  };

  componentDidMount() {
    this.setState({ run: true });
  }

  render () {
    const { steps, run } = this.state;

    return (
      <div className="app">
        <Joyride
          run={run}
          steps={steps}
          ...
        />
        ...
      </div>
    );
  }
}

Documentation

Props

Step

Styling

Customization

Callback

Constants

Accessibility

Migration from 1.x

react-joyride's People

Contributors

gilbarbara avatar ianvs avatar jmrog avatar coox avatar erikthedeveloper avatar stouch avatar chriscain avatar erwan avatar mujuni88 avatar gusruss89 avatar ckknight avatar dkingman avatar ydeshayes avatar evansoderberg avatar fsmaia avatar blackpost38 avatar jimihford avatar littlebigbot avatar josemarluedke avatar levithomason avatar xrado avatar slobo avatar stoyandimov avatar uwolfer avatar brandonmp avatar xveganxxxedgex avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar Craig Martin avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.