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

    Function useMainLandmark

    • Makes an element a focus area of the shell, beside the sidebars (order 0 and 2) and the content (1): Tab moves between areas in order and the focused one draws the landmark ring. For a region that holds several areas, e.g. a navigation sidebar's rail and panel (0 and 0.5) or a plank and its companion (1 and 1.5), whose own landmark is then turned off.

      Parameters

      • order: number
      • OptionalonKeyDown: KeyboardEventHandler<HTMLDivElement>

      Returns {
          "data-focus-group"?: FocusGroupTabBehavior;
          "data-focus-mover"?: FocusGroupAxis;
          "data-focus-tabbable"?: "";
          "data-main-landmark": string;
          onFocus: (event: FocusEvent<HTMLElement>) => void;
          onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
          ref: RefCallback<HTMLElement>;
          tabIndex: number;
      }