@dxos/react-ui
    Preparing search index...

    Interface UseTourProps

    interface UseTourProps {
        closeOnEscape?: boolean;
        closeOnInteractOutside?: boolean;
        id?: string;
        ids?: ElementIds;
        keyboardNavigation?: boolean;
        onFocusOutside?: (event: FocusOutsideEvent) => void;
        onInteractOutside?: (event: InteractOutsideEvent) => void;
        onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
        onStatusChange?: (details: StatusChangeDetails) => void;
        onStepChange?: (details: StepChangeDetails) => void;
        onStepsChange?: (details: StepsChangeDetails) => void;
        preventInteraction?: boolean;
        spotlightOffset?: Point;
        spotlightRadius?: number;
        stepId?: null | string;
        steps?: StepDetails[];
        translations?: IntlTranslations;
    }

    Hierarchy

    • Optional<Omit<tour.Props, "dir" | "getRootNode">, "id">
      • UseTourProps
    Index

    Properties

    closeOnEscape?: boolean

    Whether to close the tour when the user presses the escape key

    true
    
    closeOnInteractOutside?: boolean

    Whether to close the tour when the user clicks outside the tour

    true
    
    id?: string

    The unique identifier of the machine.

    ids?: ElementIds

    The ids of the elements in the tour. Useful for composition.

    keyboardNavigation?: boolean

    Whether to allow keyboard navigation (right/left arrow keys to navigate between steps)

    true
    
    onFocusOutside?: (event: FocusOutsideEvent) => void

    Function called when the focus is moved outside the component

    onInteractOutside?: (event: InteractOutsideEvent) => void

    Function called when an interaction happens outside the component

    onPointerDownOutside?: (event: PointerDownOutsideEvent) => void

    Function called when the pointer is pressed down outside the component

    onStatusChange?: (details: StatusChangeDetails) => void

    Callback when the tour is opened or closed

    onStepChange?: (details: StepChangeDetails) => void

    Callback when the highlighted step changes

    onStepsChange?: (details: StepsChangeDetails) => void

    Callback when the steps change

    preventInteraction?: boolean

    Prevents interaction with the rest of the page while the tour is open

    false
    
    spotlightOffset?: Point

    The offsets to apply to the spotlight

    "{ x: 10, y: 10 }"
    
    spotlightRadius?: number

    The radius of the spotlight clip path

    4
    
    stepId?: null | string

    The id of the currently highlighted step

    steps?: StepDetails[]

    The steps of the tour

    translations?: IntlTranslations

    The translations for the tour