Pilates
    Preparing search index...

    Interface UseFocusManagerValue

    interface UseFocusManagerValue {
        disableFocus: (options?: { blur?: boolean }) => void;
        enableFocus: () => void;
        focus: (id: string) => void;
        focusedId: string | null;
        focusNext: () => void;
        focusPrevious: () => void;
        isEnabled: boolean;
    }
    Index

    Properties

    disableFocus: (options?: { blur?: boolean }) => void

    Stop Tab / Shift+Tab handling. Pass { blur: true } to also clear the current focus; default keeps focusedId pinned so re-enable resumes where it left off.

    enableFocus: () => void

    Resume Tab / Shift+Tab handling (the default state).

    focus: (id: string) => void

    Focus a registration by id. Throws in dev if id is not registered.

    focusedId: string | null

    Currently focused id, or null if nothing is focused.

    focusNext: () => void

    Move focus to the next active registration in cycle order; wraps.

    focusPrevious: () => void

    Move focus to the previous active registration in cycle order; wraps.

    isEnabled: boolean

    True when focus management is enabled (default true).