MCPcopy
hub / github.com/gilbarbara/react-joyride

github.com/gilbarbara/react-joyride @v3.1.0 sqlite

repository ↗ · DeepWiki ↗ · release v3.1.0 ↗
435 symbols 1,161 edges 224 files 0 documented · 0%
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 (



      <Joyride run steps={steps} />
      {/* your app */}



  );
}

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 (



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



  );
}

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

Extension points exported contracts — how you extend this code

Props (Interface)
(no doc)
test/modules/helpers.spec.tsx
TourFlowOptions (Interface)
(no doc)
test/__setup__/tour-flow.tsx
StandardProps (Interface)
(no doc)
test/__fixtures__/Component.tsx
FixtureProps (Interface)
(no doc)
test/tours/replay.spec.tsx
Props (Interface)
(no doc)
test/hooks/useFocusTrap.spec.tsx
ProcessEnv (Interface)
(no doc)
src/global.d.ts
Locale (Interface)
(no doc)
src/types/common.ts
GetReactNodeTextOptions (Interface)
(no doc)
src/modules/helpers.tsx

Core symbols most depended-on inside this repo

expectControls
called by 100
test/__setup__/test-helpers.ts
useTourEngine
called by 56
src/hooks/useTourEngine.ts
useLifecycleEffect
called by 48
src/hooks/useLifecycleEffect.ts
createStep
called by 45
test/__setup__/test-helpers.ts
createStore
called by 30
src/modules/store.ts
setOption
called by 30
website/src/components/ConfigPanel/ConfigPanel.tsx
useJoyride
called by 27
src/hooks/useJoyride.tsx
log
called by 22
src/modules/helpers.tsx

Shape

Function 337
Interface 92
Method 4
Class 2

Languages

TypeScript100%

Modules by API surface

src/modules/dom.ts18 symbols
src/modules/helpers.tsx14 symbols
src/hooks/useControls.ts14 symbols
website/src/components/CustomLoader.tsx13 symbols
website/src/app/demos/modal/Modal.tsx9 symbols
website/src/app/docs/props/options/OptionsTable.tsx8 symbols
src/components/Tooltip/index.tsx7 symbols
website/src/modules/helpers.ts6 symbols
website/src/app/demos/overview/Overview.tsx6 symbols
test/tours/replay.spec.tsx6 symbols
src/modules/store.ts6 symbols
website/src/context/ConfigContext.tsx5 symbols

Dependencies from manifests, versioned

@arethetypeswrong/cli0.18.2 · 1×
@docsearch/css4.6.3 · 1×
@docsearch/react4.6.3 · 1×
@fastify/deepmerge3.2.1 · 1×
@floating-ui/react-dom2.1.8 · 1×
@gilbarbara/deep-equal0.4.1 · 1×
@gilbarbara/eslint-config1.2.1 · 1×
@gilbarbara/helpers0.9.5 · 1×
@gilbarbara/hooks0.11.0 · 1×
@gilbarbara/prettier-config1.0.0 · 1×
@gilbarbara/tsconfig1.0.0 · 1×
@gilbarbara/types0.2.2 · 1×

For agents

$ claude mcp add react-joyride \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact