React Joyride V3 #1196
Replies: 2 comments 4 replies
-
|
What a coincidence! I was exploring Joyride and wasn't sure whether I should use v2 or the various beta's of v3, reluctantly decided to try v3 since I'm on React 19, and just found that 3.0.0 is officially released. So far so good. No problems. Thank you so much!!! |
Beta Was this translation helpful? Give feedback.
-
|
Loving many of the new features in v3 - great work! One thing I’m confused about is the removal of the event step prop. That made it very easy to advance the tour when a user interacted with a UI element without having to modify that component. The new target: componentRef examples in the controlled demo are great but in my app I can’t change the components I need to detect. The tour is multi route and controlled centrally via a provider and context, so the v2 event worked really well. Is there a recommended pattern in v3 for achieving a similar click target to advance flow without touching the underlying component. Would love more insight into the thinking behind this, apologies if I’ve missed something obvious. I’m a junior developer, still working on my key understanding. Thanks again for the great work! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
V3 is a complete rewrite focused on modern React patterns, smaller bundle size, and a more intuitive API.
Highlights
useJoyridehook — replacesgetHelperswith a proper hook returning controls, state, current step, failures, and event subscriptionstour:start,step:before,tooltip, etc.) withonEvent(data, controls)and selective subscription viaon()before/aftercallbacks for per-step logic@floating-ui/react-domintegrationscrollTargetandspotlightTargetfor independent positioning; targets acceptRefObject, callbacks, and CSS selectorsarrowComponent,loaderComponentBreaking changes
import { Joyride } from 'react-joyride'callbackreplaced byonEventproprundefaults tofalsegetHelpersreplaced byuseJoyride()hookoptions(set globally or per-step)styles.optionstheming moved tooptionspropbuttonsarray (['back', 'close', 'primary'])disableBeacon→skipBeacon,disableCloseOnEsc→dismissKeyAction,floaterProps→floatingOptions, etc.)disableScrollParentFix,styles.spotlight, legacy overlay stylesFull migration guide: https://react-joyride.com/docs/migration
What's new: https://react-joyride.com/docs/new-in-v3
Beta Was this translation helpful? Give feedback.
All reactions