react-joyride

Create guided tours for your apps

react-joyride downloads react-joyride version react-joyride license

react-joyride类似的npm包:

npm下载趋势

3 年
🌟 在 react-joyride 的 README.md 中显示实时使用量图表,只需复制下面的代码。
## Usage Trend
[![Usage Trend of react-joyride](https://npm-compare.com/img/npm-trend/THREE_YEARS/react-joyride.png)](https://npm-compare.com/react-joyride#timeRange=THREE_YEARS)

Cumulative GitHub Star Trend

🌟 在 react-joyride 的 README.md 中显示 GitHub stars 趋势图表,只需复制下面的代码。
## GitHub Stars Trend
[![GitHub Stars Trend of react-joyride](https://npm-compare.com/img/github-trend/react-joyride.png)](https://npm-compare.com/react-joyride)

统计详情

npm包名称
下载量
Stars
大小
Issues
发布时间
License
react-joyride1,956,2897,889720 kB44 个月前MIT

react-joyride的README

React Joyride

CI Quality Gate Status Coverage

Create awesome tours for your app!

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

Joyride example image

Highlights

  • 🎨 Easy to use: Just set the steps and you're good to go
  • 🔧 Customizable: Use your own components and styles
  • ♿ Accessible: Focus trapping, keyboard navigation, and ARIA support
  • 📦 Lightweight: ~30% smaller bundle than v2
  • 🔄 Broad compatibility: React 16.8+ through React 19
  • 🖥️ SSR-safe: Works with Next.js, Remix, and other server-rendering frameworks

Resources

Setup

npm i react-joyride

Quick Start

Component API

import { Joyride } from 'react-joyride';

const steps = [
  { target: '.my-first-step', content: 'This is my awesome feature!' },
  { target: '.my-other-step', content: 'This is another awesome feature!' },
];

export function App() {
  return (
    <div>
      <Joyride run steps={steps} />
      {/* your app */}
    </div>
  );
}

Hook API

import { useJoyride } from 'react-joyride';

const steps = [
  { target: '.my-first-step', content: 'This is my awesome feature!' },
  { target: '.my-other-step', content: 'This is another awesome feature!' },
];

export function App() {
  const { controls, state, Tour } = useJoyride({ steps });

  return (
    <div>
      <button onClick={() => controls.start()}>Start Tour</button>
      {Tour}
      {/* your app */}
    </div>
  );
}

Agent Skill

Enable AI assistants to implement guided tours with React Joyride.

The skill gives your AI assistant comprehensive knowledge of the API, step configuration, events, custom components, and common patterns.

npx skills add gilbarbara/react-joyride

Migration from v2

Check the migration guide for detailed instructions on upgrading from v2.

License

MIT