Skip to content

Type Alias: OverlaySlotProps ​

ts
type OverlaySlotProps = TourScope & {
  animated: boolean;
  color: string;
  onClick: () => void;
  opacity: number;
  padding: number;
  radius: number;
  refreshTick: number;
  stage: StageRect;
  transitioning: boolean;
  zIndex: number;
};

Scope of the overlay slot.

Type Declaration ​

NameTypeDescription
animatedbooleanThe engine animates the stage frame by frame (config.animate); false means the rect jumps and CSS may transition it.
colorstring-
onClick()() => voidCall when the dimmed area is clicked (runs overlayClickBehavior).
opacitynumber-
paddingnumber-
radiusnumber-
refreshTicknumberBumped by driver.refresh(); re-measure on change.
stageStageRectThe cutout rect, without padding, interpolated while transitioning.
transitioningboolean-
zIndexnumber-

Released under the MIT License.