Repository navigation
v0.2.0
Added
-
getRowLabelonDataTable.getRowLabel?: (row) => stringnames each row's selection checkbox "Select ⟨label⟩", so a screen reader hears "Select Ada Yilmaz" instead of a raw id. Without it, the name falls back to "Select row ⟨id⟩", as in 0.1.0, so this is not a breaking change.<DataTable columns={columns} data={members} selection={selection} getRowLabel={row => row.name} />
Other changes
- Docs: README props table and accessibility notes for
getRowLabel; punctuation-only fixes in source comments. - Tooling (no effect on the published package): vite 8, happy-dom 21, Storybook 10.6.2, Vitest 5.0.5, and a CI guard against em dashes. Runtime dependency ranges are unchanged.
npm install @anthony-liddle/react-data-table@0.2.0Storybook: https://anthony-liddle.github.io/react-data-table/ (see Features › Row Selection for both the labelled and id-fallback checkboxes).
Published from CI through npm trusted publishing, with provenance.