Enode — API Reference
    Preparing search index...
    • Scrolls an element into view and lights it up once — for "take me to this setting" entry points into a drawer.

      Only active at mount counts: when true, it waits out the drawer's slide-in, scrolls ref to the centre of its scroll container and returns true for FLASH_HIGHLIGHT_DURATION_MS, then false again. Remount (e.g. via a key) to flash again. Pending timers are cleared on unmount.

      Parameters

      • active: boolean

        Whether to flash; read once, on mount.

      • ref: RefObject<HTMLElement | null>

        The element to scroll to.

      Returns boolean

      Whether the highlight should currently be shown.