Skip to content

Commit

Permalink
react grand tour component props now include the component overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitan Elbaz committed Jun 28, 2023
1 parent cd9ebc1 commit 93ce52f
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import React, { PropsWithChildren, ReactNode } from 'react';

export type ReactGrandTourProps = ComponentVisibility & {
open?: boolean;
onOpen?: () => void;
onClose?: (reason?: ReactGrandTourCloseReason) => void;
onStepChange?: (props: OnStepChangeProps) => void;
openAt?: number;
steps?: ReactGrandTourStep[];
scrollIntoViewOptions?: ScrollIntoViewOptions;
transitionSpeed?: number;
disableCloseOnEscape?: boolean;
disableCloseBtn?: boolean;
disableCloseOnBackdropClick?: boolean;
stylingOverrides?: ReactGrandTourStylingOverrides;
keyboardShortcuts?: ReactGrandTourShortcuts;
};
export type ReactGrandTourProps = ComponentVisibility &
Partial<ComponentOverrides> & {
open?: boolean;
onOpen?: () => void;
onClose?: (reason?: ReactGrandTourCloseReason) => void;
onStepChange?: (props: OnStepChangeProps) => void;
openAt?: number;
steps?: ReactGrandTourStep[];
scrollIntoViewOptions?: ScrollIntoViewOptions;
transitionSpeed?: number;
disableCloseOnEscape?: boolean;
disableCloseBtn?: boolean;
disableCloseOnBackdropClick?: boolean;
stylingOverrides?: ReactGrandTourStylingOverrides;
keyboardShortcuts?: ReactGrandTourShortcuts;
};

export type ComponentVisibility = {
hideCloseButton?: boolean;
Expand Down

0 comments on commit 93ce52f

Please sign in to comment.