State management companion for useTableSelection. Returns selectionConfig for the behaviour plugin plus selectionState for selection-aware UI such as TableSelectionToolbar. Handles disabled/selectable row filtering for select-all automatically: disabled rows are frozen (preserved across select-all/deselect-all), non-selectable rows are excluded.
pnpm dlx shadcn@latest add "https://astryx.atmeta.com/shadcn/hook-use-table-selection-state.json"