项目
在 GitHub 查看
gilbarbara/react-joyride
gilbarbara/react-joyride has 7,891 GitHub stars and 593 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-08 15:59 UTC. Last push 2026-07-09.
在应用中创建引导式教程
可以做什么
- 🎨 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
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- 更新延迟
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React Joyride
Create awesome tours for your app!
Showcase your app to new users or explain the functionality of new features.
Highlights
- 🎨 Easy to use: Just set the
stepsand 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
