@fkui/logic
    Preparing search index...

    Interface FocusOptions

    Options for focus.

    interface FocusOptions {
        force?: boolean;
        preventScroll?: boolean;
        scrollToTop?: boolean;
    }
    Index

    Properties

    force?: boolean

    If set to true tabindex="-1" will be added as needed so any element can be focused.

    preventScroll?: boolean

    By default the element is scrolled into view. Set this to true to prevent this behavior.

    See full description of preventScroll at MDN

    scrollToTop?: boolean

    By default the element is scrolled into view centered vertically. Set this to true to scroll such that the elements top is at the top of the viewport.

    It will utilize the scrollIntoView function, see full description of scrollIntoView at MDN