DocsExamplesMore examples

Examples

Shift Range Controlled State

Selecting a row pins it in place. Here the selection is held in React state outside the table, and a Shift-click selects a whole range.

Try it

  1. Tick Anderson's checkbox. Anderson is selected and pinned.
  2. Hold Shift and tick Brooke's checkbox. Anderson to Brooke are all pinned.
  3. Untick Lily's checkbox. Lily is unpinned, the other three stay pinned.