interface TourProps {
    animated?: boolean | {
        placeholder: boolean;
    };
    arrow?: boolean | {
        pointAtCenter: boolean;
    };
    builtinPlacements?: BuildInPlacements | ((config?) => undefined | BuildInPlacements);
    className?: string;
    closeIcon?: ReactNode;
    current?: number;
    defaultCurrent?: number;
    disabledInteraction?: boolean;
    gap?: Gap;
    getPopupContainer?: ((node) => HTMLElement);
    indicatorsRender?: ((current, total) => ReactNode);
    mask?: boolean | {
        color?: string;
        style?: CSSProperties;
    };
    onChange?: ((current) => void);
    onClose?: ((current) => void);
    onFinish?: (() => void);
    onPopupAlign?: ((element, align) => void);
    open?: boolean;
    placement?: PlacementType;
    prefixCls?: string;
    rootClassName?: string;
    scrollIntoViewOptions?: boolean | ScrollIntoViewOptions;
    steps?: TourStepProps[];
    type?: "default" | "primary";
    zIndex?: number;
}

Hierarchy

  • Omit<RCTourProps, "renderPanel">
    • TourProps

Properties

animated?: boolean | {
    placeholder: boolean;
}

Type declaration

  • placeholder: boolean
arrow?: boolean | {
    pointAtCenter: boolean;
}

Type declaration

  • pointAtCenter: boolean
builtinPlacements?: BuildInPlacements | ((config?) => undefined | BuildInPlacements)

Type declaration

    • (config?): undefined | BuildInPlacements
    • Parameters

      • Optional config: {
            arrowPointAtCenter?: boolean;
        }
        • Optional arrowPointAtCenter?: boolean

      Returns undefined | BuildInPlacements

className?: string
closeIcon?: ReactNode
current?: number
defaultCurrent?: number
disabledInteraction?: boolean
gap?: Gap
getPopupContainer?: ((node) => HTMLElement)

Type declaration

indicatorsRender?: ((current, total) => ReactNode)

Type declaration

    • (current, total): ReactNode
    • Parameters

      • current: number
      • total: number

      Returns ReactNode

mask?: boolean | {
    color?: string;
    style?: CSSProperties;
}

Type declaration

  • Optional color?: string
  • Optional style?: CSSProperties
onChange?: ((current) => void)

Type declaration

    • (current): void
    • Parameters

      • current: number

      Returns void

onClose?: ((current) => void)

Type declaration

    • (current): void
    • Parameters

      • current: number

      Returns void

onFinish?: (() => void)

Type declaration

    • (): void
    • Returns void

onPopupAlign?: ((element, align) => void)

Type declaration

    • (element, align): void
    • Parameters

      Returns void

open?: boolean
placement?: PlacementType
prefixCls?: string
rootClassName?: string
scrollIntoViewOptions?: boolean | ScrollIntoViewOptions
steps?: TourStepProps[]
type?: "default" | "primary"
zIndex?: number

Generated using TypeDoc