brows3r — TypeScript API
    Preparing search index...

    Function useSelection

    • React hook that manages selection state with modifier-aware click handling and Cmd/Ctrl+A keyboard shortcut.

      Type Parameters

      • T

      Parameters

      • items: T[]

        The ordered list of items currently displayed.

      • getId: (item: T) => string

        Extract a stable unique ID from an item.

      Returns UseSelectionResult<T>