Pilates
    Preparing search index...

    Interface UseFocusOptions

    interface UseFocusOptions {
        autoFocus?: boolean;
        id?: string;
        isActive?: boolean;
    }
    Index

    Properties

    autoFocus?: boolean

    Take focus on mount if no other focusable currently holds it. Default false.

    id?: string

    Stable identifier for programmatic manager.focus(id) and React reconciliation. If omitted, an internal id derived from useId() is used; you can still focus this hook via the returned focus().

    isActive?: boolean

    When false, the registration stays in the cycle list (id remains valid) but cannot be Tab-focused and reports isFocused=false even if it was previously the focused id. Default true.