react-shepherd icon indicating copy to clipboard operation
react-shepherd copied to clipboard

Possible to pass popperOptions to a single step?

Open dan-jacobson opened this issue 1 year ago • 1 comments

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?

dan-jacobson avatar Mar 19 '24 22:03 dan-jacobson

@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

chuckcarpenter avatar Mar 25 '24 20:03 chuckcarpenter