shepherd-pro / react-shepherd

A React wrapper for the site tour library Shepherd
https://react-shepherd.vercel.app
641 stars 36 forks source link

Possible to pass popperOptions to a single step? #818

Open dan-jacobson opened 7 months ago

dan-jacobson commented 7 months ago

Right now it seems I can only pass popperOptions to defaultStepOptions, not to individual steps.

I'm trying to pass different offsets based on the step and it would be really nice to be able to pick different popperOptions per step.

Am I just doing it wrong?

chuckcarpenter commented 7 months ago

@dan-jacobson what version are you using? Offhand, the options set there are passed https://github.com/shepherd-pro/shepherd/blob/51c6837e0d1ec42ebec431727cf59cdbc1ce8443/shepherd.js/src/step.ts#L519

I'm wondering if you're on a version post floatingUI replacement though and then it's floatingUIOptions.

https://shepherdjs.dev/docs/Step.html#Step