v0.8.0
Added the ability to set a preferred position for the tour modal per step.
(all ReactGrandTourStep
props https://github.com/EitanElbaz/ReactGrandTour/blob/main/src/types.ts#L106)
export type ReactGrandTourStep = {
...existing props
/**
* If set, will position the modal in the position indicated, if there is space.
*
* Default: auto
*/
preferredModalPosition?: 'auto' | 'top' | 'right' | 'bottom' | 'left';
};
Example of use can be found here https://github.com/EitanElbaz/ReactGrandTour/blob/main/playground/src/tours/Home.tsx#L138
Example in action can be found at the bottom of this page https://eitanelbaz.github.io/ReactGrandTour/