selection
The current selection, a directional TextRange over the caret. Reading registers a snapshot subscription to caret changes; assigning moves the caret and selection of the bound component (or, while unmounted, stores the value to apply when a component binds).
A bound component settles the assigned range against the document it renders, and the settled range is what this property then reports: assigning an offset past the document's end reports the end.