Examples
Shift Range External Atom
Selecting a row pins it in place. Here the selection lives in an external atom, and a button outside the rows can change it.
Try it
- Tick Anderson's checkbox, then hold Shift and tick Brooke's. Four rows are pinned.
- Click
Select Mason and Tom. Now only Mason and Tom are selected and pinned.
Related guides
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.
Select Top Internal State
Selecting a row pins it to the top of the table. Here the table keeps the selection itself, and a button outside the rows can change it.