react-joyride

Create walkthroughs and guided tours for your app

Github星跟踪图

React Joyride

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

Chat about it in our Spectrum community

Setup

npm i react-joyride

Getting Started

import Joyride from 'react-joyride';

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

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

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

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:

npm install
npm link # link your local repo to your global packages
npm run watch # build the files and watch for changes

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

npm install
npm link react-joyride # just link your local copy into this project's node_modules
npm start

Start coding! ?

主要指标

概览
名称与所有者gilbarbara/react-joyride
主编程语言TypeScript
编程语言JavaScript (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2015-08-28 02:56:09
推送于2024-11-20 13:38:38
最后一次提交
发布数107
最新版本名称v2.9.3 (发布于 2024-11-18 09:37:42)
第一版名称0.4 (发布于 )
用户参与
星数7.2k
关注者数44
派生数564
提交数826
已启用问题?
问题数628
打开的问题数17
拉请求数93
打开的拉请求数4
关闭的拉请求数109
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?