Highlight Text on Selection in React
When a user selects/highlights any text on the page show a floating tooltip or toolbar above the selection (like Medium's highlight toolbar). Use the Selection API to get selected text and its bounding rect. Display action buttons (copy, share, highlight) in the tooltip.