Get the Live Selection Element and enable it
When enabled, Live Selection will automatically detect and highlight user’s presence on the following elements:inputtextareabuttoncontenteditable
- React / Next.js
- Other Frameworks
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Enable Velt Live Selection to highlight inputs, textareas, buttons, and contenteditable elements collaborators are focused on, with React and JS examples.
inputtextareabuttoncontenteditableconst { client } = useVeltClient();
useEffect(() => {
if (client) {
const selectionElement = client.getSelectionElement();
selectionElement.enableLiveSelection();
selectionElement.disableLiveSelection();
}
}, [client]);
if (Velt) {
const selectionElement = Velt.getSelectionElement();
selectionElement.enableLiveSelection();
selectionElement.disableLiveSelection();
}
Was this page helpful?
