Row selection for DataTable. The selection is DERIVED , the stored set intersected with the rows on screen , so a bulk action can never point at a row the filter has hidden. Returns a stable object identity, which is what keeps DataTable’s memoised rows from re-rendering per keystroke.
pnpm dlx shadcn@latest add "https://ui.velobits.dev/r/use-row-selection.json"