Provide a list of element IDs where the cursors should show.
If you provide a list of element IDs, we will only show cursors that hover over those specific elements.
For eg: For an app with canvas and tool picker: You can whitelist the canvas ID so that the cursors are only visible on the canvas and not the tool picker.
You must pass a string into allowedElementIds instead of an object
Whenever the cursor for any user changes, we emit this event with the updated list of users currently online on this document with their cursor positions.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Velt","colors":{"primary":"#272728","light":"#D5D5D5","dark":"#000000"},"logo":{"light":"https://mintcdn.com/velt/gY7ilEx2g4g3-HVe/velt-logo-big-light.png?fit=max\u0026auto=format\u0026n=gY7ilEx2g4g3-HVe\u0026q=85\u0026s=c75fd62a074f53174a364509b4363fdc","dark":"https://mintcdn.com/velt/gY7ilEx2g4g3-HVe/velt-logo-big.png?fit=max\u0026auto=format\u0026n=gY7ilEx2g4g3-HVe\u0026q=85\u0026s=3b5f452918e68f127b7dcae71c396463","href":"https://docs.velt.dev"},"favicon":"https://mintcdn.com/velt/gY7ilEx2g4g3-HVe/velt-favi.png?fit=max\u0026auto=format\u0026n=gY7ilEx2g4g3-HVe\u0026q=85\u0026s=5ddfb042b3fd320882626c440411bd95","api":{"playground":{"display":"interactive"}},"appearance":{"default":"dark"},"background":{"color":{"dark":"#090014"}},"navbar":{"primary":{"type":"button","label":"Get API Key","href":"https://console.velt.dev/"}},"footer":{"socials":{"twitter":"https://twitter.com/veltjs","linkedin":"https://www.linkedin.com/company/veltjs"}},"search":{"prompt":"Search or ask..."},"seo":{"metatags":{"og:image":"https://firebasestorage.googleapis.com/v0/b/snippyly.appspot.com/o/external%2Fvelt_docs.png?alt=media\u0026token=9e4502da-66ef-4005-9124-dbc76f04b1fd","twitter:image":"https://firebasestorage.googleapis.com/v0/b/snippyly.appspot.com/o/external%2Fvelt_docs.png?alt=media\u0026token=9e4502da-66ef-4005-9124-dbc76f04b1fd","twitter:card":"summary_large_image"},"indexing":"all"},"integrations":{"intercom":{"appId":"fxx14qnk"},"mixpanel":{"projectToken":"6fe5c5cd3adeb341288776482e7bb147"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"velt","hasAudioNarration":false,"actualSubdomain":"velt","customDomains":["velt.dev"],"gitSource":{"type":"github","owner":"velt-js","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeaec9cd4a2465447e7dd9d","collectionId":"c55a8d84-f3bd-4e45-aa44-82e3d31c316c","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeaec9cd4a2465447e7dd9d"},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aeaec9cd4a2465447e7dd9d","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":218},{"language":"default","tag":"REST APIs","count":215},{"language":"default","tag":"v2","count":170},{"language":"default","tag":"Documentation","count":168},{"language":"default","tag":"UI Customization","count":125},{"language":"default","tag":"Comments","count":94},{"language":"default","tag":"Release Notes","count":90},{"language":"default","tag":"Components: Async Collaboration","count":75},{"language":"default","tag":"Async Collaboration","count":62},{"language":"default","tag":"Realtime Collaboration","count":46}],"searchSettings":{"showContentSnippets":true,"isFiltersEnabled":true}},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"rakesh@velt.dev","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":""},{"filePath":"style.css","content":"::-webkit-scrollbar{display:none}*{-ms-overflow-style:none;scrollbar-width:none}th{text-align:left}.update-container .relative{max-width:525px!important}#table-of-contents-content{overflow-x:clip;height:100%}"},{"filePath":"public/custom.css","content":""}],"page":{"pagePath":"realtime-collaboration/cursors/customize-behavior","slug":"/realtime-collaboration/cursors/customize-behavior","pageMetadata":{"title":"Customize Behavior","description":null,"href":"/realtime-collaboration/cursors/customize-behavior"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tab,Tabs,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`avatarmode`,children:`avatarMode`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Show the user’s avatar floating next to their cursor instead of their name.`}),`\n`,_jsx(_components.li,{children:`Enabling this mode will allow you to show the user’s avatar in context with the cursor.`}),`\n`]}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`React / Next.js`,id:`react-%2F-next-js`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`VeltCursor`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` avatarMode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`]})})})}),_jsx(Tab,{title:`Other Frameworks`,id:`other-frameworks`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`velt-cursor`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` avatar-mode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"true\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`velt-cursor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`setinactivitytime`,children:`setInactivityTime`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Set the time it takes for a user to go inactive in milliseconds.`}),`\n`,_jsx(_components.li,{children:`By default we mark a user as inactive if they do not take any action on the document within a 5 mins timeframe.`}),`\n`,_jsx(_components.li,{children:`If they unfocus the tab, we mark them inactive immediately.`}),`\n`]}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`React / Next.js`,id:`react-%2F-next-js-2`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`VeltCursor`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` inactivityTime`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`300000`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`]})})}),_jsx(_components.p,{children:`Using API:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` cursorElement`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getCursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setInactivityTime`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`300000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Other Frameworks`,id:`other-frameworks-2`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`velt-cursor`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` inactivity-time`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"300000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`velt-cursor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsx(_components.p,{children:`Using API:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` cursorElement`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Velt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getCursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setInactivityTime`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`300000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`allowedelementids`,children:`allowedElementIds`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Provide a list of element IDs where the cursors should show.`}),`\n`,_jsx(_components.li,{children:`If you provide a list of element IDs, we will only show cursors that hover over those specific elements.`}),`\n`,_jsx(_components.li,{children:`For eg: For an app with canvas and tool picker: You can whitelist the canvas ID so that the cursors are only visible on the canvas and not the tool picker.`}),`\n`]}),`\n`,_jsx(Warning,{children:`You must pass a string into allowedElementIds instead of an object`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`React / Next.js`,id:`react-%2F-next-js-3`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`VeltCursor`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` allowedElementIds`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'element-1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'element-2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`]})})}),_jsx(_components.p,{children:`Using API:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` cursorElement`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getCursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`allowedElementIds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'element-1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'element-2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`Other Frameworks`,id:`other-frameworks-3`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`velt-cursor`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` allowed-element-ids`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'[\"element-1\", \"element-2\"]'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`velt-cursor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsx(_components.p,{children:`Using API:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` cursorElement`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Velt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getCursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`allowedElementIds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'element-1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'element-2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})]}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`oncursoruserchange`,children:`onCursorUserChange`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Whenever the cursor for any user changes, we emit this event with the updated list of users currently online on this document with their cursor positions.`}),`\n`]}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`React / Next.js`,id:`react-%2F-next-js-4`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`VeltCursor`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onCursorUserChange`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`cursorUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` yourMethod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursorUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`]})})})}),_jsx(Tab,{title:`Other Frameworks`,id:`other-frameworks-4`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Velt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`){`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` cursorTag`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`querySelector`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'velt-cursor'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tcursorTag`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addEventListener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'onCursorUserChange'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"onCursorUserChange\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`detail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`getonlineusersoncurrentdocument`,children:`getOnlineUsersOnCurrentDocument`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Subscribe to a list of all online users who are either active or inactive on the current document.`}),`\n`]}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`React / Next.js`,id:`react-%2F-next-js-5`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`jsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`jsx`,children:_jsxs(_components.code,{language:`jsx`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` cursorElement`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getCursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getOnlineUsersOnCurrentDocument`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`cursorUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Online users: \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursorUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})}),_jsx(Tab,{title:`Other Frameworks`,id:`other-frameworks-5`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`jsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`jsx`,children:_jsxs(_components.code,{language:`jsx`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` cursorElement`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Velt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getCursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursorElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getOnlineUsersOnCurrentDocument`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`cursorUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Online users: \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cursorUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Customize Behavior","description":null,"href":"/realtime-collaboration/cursors/customize-behavior"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"avatarMode","slug":"avatarmode","depth":2,"children":[]},{"title":"setInactivityTime","slug":"setinactivitytime","depth":2,"children":[]},{"title":"allowedElementIds","slug":"allowedelementids","depth":2,"children":[]},{"title":"onCursorUserChange","slug":"oncursoruserchange","depth":2,"children":[]},{"title":"getOnlineUsersOnCurrentDocument","slug":"getonlineusersoncurrentdocument","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/velt/752c38235fc975ab/reb2b-tracking.js","/docs/_mintlify/custom/velt/39475307ed77f9b2/signals-tracking.js"],"subdomain":"velt","siteName":"Velt","title":"Customize Behavior - Velt","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T20:56:01.605Z","originalFileLocation":"realtime-collaboration/cursors/customize-behavior.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Velt\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/velt/XJwux-wDtXKfbtc-/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/velt/XJwux-wDtXKfbtc-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/velt/XJwux-wDtXKfbtc-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/velt/XJwux-wDtXKfbtc-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/velt/XJwux-wDtXKfbtc-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/velt/XJwux-wDtXKfbtc-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/velt/XJwux-wDtXKfbtc-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/velt/XJwux-wDtXKfbtc-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/velt/XJwux-wDtXKfbtc-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Customize Behavior - Velt\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Velt\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://velt.dev/docs/realtime-collaboration/cursors/customize-behavior\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://firebasestorage.googleapis.com/v0/b/snippyly.appspot.com/o/external%2Fvelt_docs.png?alt=media\u0026amp;token=9e4502da-66ef-4005-9124-dbc76f04b1fd\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Customize Behavior - Velt\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://firebasestorage.googleapis.com/v0/b/snippyly.appspot.com/o/external%2Fvelt_docs.png?alt=media\u0026amp;token=9e4502da-66ef-4005-9124-dbc76f04b1fd\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/velt/XJwux-wDtXKfbtc-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Velt\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#272728\">\u003clink data-mint-head rel=\"canonical\" href=\"https://velt.dev/docs/realtime-collaboration/cursors/customize-behavior\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/realtime-collaboration/cursors/customize-behavior.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://velt.dev/#organization\",\"name\":\"Velt\",\"url\":\"https://velt.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/velt/gY7ilEx2g4g3-HVe/velt-logo-big-light.png?fit=max\u0026auto=format\u0026n=gY7ilEx2g4g3-HVe\u0026q=85\u0026s=c75fd62a074f53174a364509b4363fdc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://velt.dev/docs#website\",\"name\":\"Velt\",\"url\":\"https://velt.dev/docs\",\"publisher\":{\"@id\":\"https://velt.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://velt.dev/docs/realtime-collaboration/cursors/customize-behavior#webpage\",\"url\":\"https://velt.dev/docs/realtime-collaboration/cursors/customize-behavior\",\"name\":\"Customize Behavior\",\"dateModified\":\"2026-10-29T20:56:01.605Z\",\"isPartOf\":{\"@id\":\"https://velt.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://velt.dev/docs/realtime-collaboration/cursors/customize-behavior#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://velt.dev/docs/realtime-collaboration/cursors/customize-behavior#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Realtime Collaboration\",\"item\":\"https://velt.dev/docs/realtime-collaboration/crdt/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cursors\",\"item\":\"https://velt.dev/docs/realtime-collaboration/cursors/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Customize Behavior\",\"item\":\"https://velt.dev/docs/realtime-collaboration/cursors/customize-behavior\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://velt.dev/docs/realtime-collaboration/cursors/customize-behavior#article\",\"headline\":\"Customize Behavior\",\"name\":\"Customize Behavior\",\"url\":\"https://velt.dev/docs/realtime-collaboration/cursors/customize-behavior\",\"mainEntityOfPage\":{\"@id\":\"https://velt.dev/docs/realtime-collaboration/cursors/customize-behavior#webpage\"},\"image\":\"https://firebasestorage.googleapis.com/v0/b/snippyly.appspot.com/o/external%2Fvelt_docs.png?alt=media\u0026token=9e4502da-66ef-4005-9124-dbc76f04b1fd\",\"dateModified\":\"2026-10-29T20:56:01.605Z\",\"publisher\":{\"@id\":\"https://velt.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://velt.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Velt\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Velt","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Getting Started","href":"/get-started/overview"},{"title":"Quickstart","href":"/get-started/quickstart"},{"title":"Advanced Setup","href":"/get-started/advanced"}]},{"group":"Agentic Setup","pages":[{"title":"Overview","href":"/get-started/agentic-overview"},{"title":"Installation Plugin","href":"/get-started/installation-plugin"},{"title":"Velt Installation MCP","href":"/get-started/mcp-installer"},{"title":"UI Customization Plugin","href":"/get-started/ui-customization-plugin"},{"title":"Agent Skills","href":"/get-started/skills"},{"title":"Velt CLI","href":"/get-started/cli"},{"title":"Velt Docs MCP","href":"/get-started/docs-mcp"}]},{"group":"Key Concepts","pages":[{"title":null,"href":"/key-concepts/overview"}]},{"group":"Async Collaboration","pages":[{"group":"Comments","pages":[{"title":"Comments","sidebarTitle":"Overview","href":"/async-collaboration/comments/overview"},{"group":"Setup","pages":[{"title":"Freestyle Setup","href":"/async-collaboration/comments/setup/freestyle"},{"title":"Page Mode Setup","href":"/async-collaboration/comments/setup/page"},{"title":"Popover Setup","href":"/async-collaboration/comments/setup/popover"},{"title":"Stream Setup","href":"/async-collaboration/comments/setup/stream"},{"title":"Text Setup","href":"/async-collaboration/comments/setup/text"},{"group":"Text Editors Setup (Tiptap, Slate, Lexical, etc.)","pages":[{"title":"Ace Editor Setup","href":"/async-collaboration/comments/setup/ace"},{"title":"Apryse Setup","href":"/async-collaboration/comments/setup/apryse"},{"title":"CKEditor Setup","href":"/async-collaboration/comments/setup/ckeditor"},{"title":"CodeMirror Setup","href":"/async-collaboration/comments/setup/codemirror"},{"title":"DraftJS Setup","href":"/async-collaboration/comments/setup/draftjs"},{"title":"Lexical Setup","href":"/async-collaboration/comments/setup/lexical"},{"title":"Monaco Setup","href":"/async-collaboration/comments/setup/monaco"},{"title":"Nutrient Setup","href":"/async-collaboration/comments/setup/nutrient"},{"title":"Plate Setup","href":"/async-collaboration/comments/setup/plate"},{"title":"ProseMirror Setup","href":"/async-collaboration/comments/setup/prosemirror"},{"title":"Quill Setup","href":"/async-collaboration/comments/setup/quill"},{"title":"SlateJS Setup","href":"/async-collaboration/comments/setup/slatejs"},{"title":"SpreadJS Setup","href":"/async-collaboration/comments/setup/spreadjs"},{"title":"SuperDoc Setup","href":"/async-collaboration/comments/setup/superdoc"},{"title":"TinyMCE Setup","href":"/async-collaboration/comments/setup/tinymce"},{"title":"Tiptap Setup","href":"/async-collaboration/comments/setup/tiptap"}]},{"title":"Inline Comments Setup","href":"/async-collaboration/comments/setup/inline-comments"},{"title":"Lottie Player Setup","href":"/async-collaboration/comments/setup/lottie-player-setup"},{"group":"Video Player Setup","pages":[{"title":"Prebuilt Video Player Setup","href":"/async-collaboration/comments/setup/video-player-setup/video-player-setup"},{"title":"Custom Video Player Setup","href":"/async-collaboration/comments/setup/video-player-setup/custom-video-player-setup"}]},{"group":"Chart Comments Setup","pages":[{"title":"Highcharts Comments Setup","href":"/async-collaboration/comments/setup/chart-comments-setup/highcharts"},{"title":"NivoCharts Comments Setup","href":"/async-collaboration/comments/setup/chart-comments-setup/nivo-charts"},{"title":"ChartJS Comments Setup","href":"/async-collaboration/comments/setup/chart-comments-setup/chartjs"},{"title":"Custom Charts Setup","href":"/async-collaboration/comments/setup/chart-comments-setup/custom-charts"}]},{"group":"Standalone Components (DIY)","pages":[{"group":"Comment Composer","pages":[{"title":"Comment Standalone Composer","sidebarTitle":"Overview","href":"/async-collaboration/comments/standalone-components/comment-composer/overview"},{"title":"Setup","href":"/async-collaboration/comments/standalone-components/comment-composer/setup"},{"title":"Customize Behavior","href":"/async-collaboration/comments/standalone-components/comment-composer/customize-behavior"}]},{"group":"Comment Thread","pages":[{"title":"Standalone Comment Thread","sidebarTitle":"Overview","href":"/async-collaboration/comments/standalone-components/comment-thread/overview"},{"title":"Setup","href":"/async-collaboration/comments/standalone-components/comment-thread/setup"},{"title":"Customize Behavior","href":"/async-collaboration/comments/standalone-components/comment-thread/customize-behavior"}]},{"group":"Comment Pin","pages":[{"title":"Comment Pin","sidebarTitle":"Overview","href":"/async-collaboration/comments/standalone-components/comment-pin/overview"},{"title":"Setup","href":"/async-collaboration/comments/standalone-components/comment-pin/setup"},{"title":"Customize Behavior","href":"/async-collaboration/comments/standalone-components/comment-pin/customize-behavior"}]},{"group":"Comment Text","pages":[{"title":"Comment Text","sidebarTitle":"Overview","href":"/async-collaboration/comments/standalone-components/comment-text/overview"}]}]}]},{"title":"Customize Behavior","href":"/async-collaboration/comments/customize-behavior"},{"group":"Comments Sidebar","pages":[{"title":"Comments Sidebar","sidebarTitle":"Overview","href":"/async-collaboration/comments-sidebar/overview"},{"group":"V1","pages":[{"title":"Setup","href":"/async-collaboration/comments-sidebar/v1/setup"},{"title":"Customize Behavior","href":"/async-collaboration/comments-sidebar/v1/customize-behavior"}]},{"group":"V2","pages":[{"title":"Setup","href":"/async-collaboration/comments-sidebar/v2/setup"},{"title":"Customize Behavior","href":"/async-collaboration/comments-sidebar/v2/customize-behavior"}]}]},{"title":"Notifications","href":"/async-collaboration/comments/notifications"}]},{"group":"In-app Notifications","pages":[{"title":"In-app Notifications","sidebarTitle":"Overview","href":"/async-collaboration/notifications/overview"},{"title":"Setup","href":"/async-collaboration/notifications/setup"},{"title":"Customize Behavior","href":"/async-collaboration/notifications/customize-behavior"}]},{"group":"Activity Logs","pages":[{"title":"Activity Logs","sidebarTitle":"Overview","href":"/async-collaboration/activity/overview"},{"title":"Setup","href":"/async-collaboration/activity/setup"},{"title":"Customize Behavior","href":"/async-collaboration/activity/customize-behavior"}]},{"group":"Inline Reactions","pages":[{"title":"Inline Reactions","sidebarTitle":"Overview","href":"/async-collaboration/reactions/overview"},{"title":"Setup","href":"/async-collaboration/reactions/setup"}]},{"group":"Recorder","pages":[{"title":"Recorder","sidebarTitle":"Overview","href":"/async-collaboration/recorder/overview"},{"title":null,"href":"/async-collaboration/recorder/setup"},{"title":"Customize Behavior","href":"/async-collaboration/recorder/customize-behavior"}]},{"group":"View Analytics","pages":[{"title":"View Analytics","sidebarTitle":"Overview","href":"/async-collaboration/view-analytics/overview"},{"title":"Setup","href":"/async-collaboration/view-analytics/setup"},{"title":"Customize Behavior","href":"/async-collaboration/view-analytics/customize-behavior"}]},{"group":"Arrows","pages":[{"title":"Arrows","sidebarTitle":"Overview","href":"/async-collaboration/arrows/overview"},{"title":"Setup","href":"/async-collaboration/arrows/setup"},{"title":"Customize Behavior","href":"/async-collaboration/arrows/customize-behavior"}]},{"title":"Suggestions (Beta)","sidebarTitle":"Suggestions","href":"/async-collaboration/suggestions/overview"}]},{"group":"Realtime Collaboration","pages":[{"group":"Multiplayer Editing (Yjs)","pages":[{"title":"Overview","href":"/realtime-collaboration/crdt/overview"},{"group":"Core","pages":[{"title":"Core Setup","href":"/realtime-collaboration/crdt/setup/core"},{"title":"Array Store","href":"/realtime-collaboration/crdt/setup/core-stores/array"},{"title":"Map Store","href":"/realtime-collaboration/crdt/setup/core-stores/map"},{"title":"Text Store","href":"/realtime-collaboration/crdt/setup/core-stores/text"},{"title":"XML Store","href":"/realtime-collaboration/crdt/setup/core-stores/xml"}]},{"title":"Ace Editor","href":"/realtime-collaboration/crdt/setup/ace"},{"title":"Apryse WebViewer","href":"/realtime-collaboration/crdt/setup/apryse"},{"title":"BlockNote Editor","href":"/realtime-collaboration/crdt/setup/blocknote"},{"title":"CKEditor 5 Editor","href":"/realtime-collaboration/crdt/setup/ckeditor"},{"title":"CodeMirror Editor","href":"/realtime-collaboration/crdt/setup/codemirror"},{"title":"Draft.js Editor","href":"/realtime-collaboration/crdt/setup/draftjs"},{"title":"Lexical Editor","href":"/realtime-collaboration/crdt/setup/lexical"},{"title":"Monaco Editor","href":"/realtime-collaboration/crdt/setup/monaco"},{"title":"Nutrient Web SDK","href":"/realtime-collaboration/crdt/setup/nutrient"},{"title":"ProseMirror Editor","href":"/realtime-collaboration/crdt/setup/prosemirror"},{"title":"Quill Editor","href":"/realtime-collaboration/crdt/setup/quill"},{"title":"React Flow Editor","href":"/realtime-collaboration/crdt/setup/reactflow"},{"title":"Slate Editor","href":"/realtime-collaboration/crdt/setup/slate"},{"title":"SpreadJS Workbooks","href":"/realtime-collaboration/crdt/setup/spreadjs"},{"title":"SuperDoc Editor","href":"/realtime-collaboration/crdt/setup/superdoc"},{"title":"TinyMCE Editor","href":"/realtime-collaboration/crdt/setup/tinymce"},{"title":"Tiptap Editor","href":"/realtime-collaboration/crdt/setup/tiptap"}]},{"group":"Presence","pages":[{"title":"Overview","href":"/realtime-collaboration/presence/overview"},{"title":"Setup","href":"/realtime-collaboration/presence/setup"},{"title":"Customize Behavior","href":"/realtime-collaboration/presence/customize-behavior"}]},{"group":"Cursors","pages":[{"title":"Overview","href":"/realtime-collaboration/cursors/overview"},{"title":null,"description":null,"href":"/realtime-collaboration/cursors/setup"},{"title":"Customize Behavior","href":"/realtime-collaboration/cursors/customize-behavior"}]},{"group":"Follow Me Mode","pages":[{"title":"Overview","description":"This is like Figma's follow along feature. Start a shared session in a click. One person is the leader, and whatever they do - like clicking, scrolling, or navigating - happens automatically on everyone else's screen.","href":"/realtime-collaboration/flock-mode/overview"},{"title":"Setup","href":"/realtime-collaboration/flock-mode/setup"},{"title":"Customize Behavior","href":"/realtime-collaboration/flock-mode/customize-behavior"}]},{"group":"Huddle","pages":[{"title":"Overview","href":"/realtime-collaboration/huddle/overview"},{"title":"Setup","href":"/realtime-collaboration/huddle/setup"},{"title":"Customize Behavior","href":"/realtime-collaboration/huddle/customize-behavior"}]},{"group":"Live Selection","pages":[{"title":"Overview","href":"/realtime-collaboration/live-selection/overview"},{"title":null,"href":"/realtime-collaboration/live-selection/setup"},{"title":"Customize Behavior","href":"/realtime-collaboration/live-selection/customize-behavior"}]},{"group":"Live State Sync","pages":[{"title":"Overview","href":"/realtime-collaboration/live-state-sync/overview"},{"title":"Setup","href":"/realtime-collaboration/live-state-sync/setup"},{"title":"Redux Middleware","href":"/realtime-collaboration/live-state-sync/redux-middleware"}]},{"group":"Single Editor Mode","pages":[{"title":"Overview","href":"/realtime-collaboration/single-editor-mode/overview"},{"title":"Setup","href":"/realtime-collaboration/single-editor-mode/setup"},{"title":"Customize Behavior","href":"/realtime-collaboration/single-editor-mode/customize-behavior"}]},{"group":"Video Player Sync","pages":[{"title":null,"href":"/realtime-collaboration/video-player-sync/overview"},{"title":"Setup","href":"/realtime-collaboration/video-player-sync/setup"}]}]},{"group":"AI","pages":[{"group":"Review Agents","pages":[{"title":"Review Agents","sidebarTitle":"Overview","href":"/ai/agents/overview"},{"title":"Setup","href":"/ai/agents/setup"}]},{"group":"Rewriter","pages":[{"title":"Rewriter","sidebarTitle":"Overview","href":"/ai/rewriter/overview"},{"title":"Setup","href":"/ai/rewriter/setup"},{"title":"Customize Behavior","href":"/ai/rewriter/customize-behavior"}]},{"group":"Review Workflow Builder (Beta)","pages":[{"title":"Review Workflow Builder (Beta)","sidebarTitle":"Overview","href":"/ai/approval-engine/overview"},{"title":"Setup","href":"/ai/approval-engine/setup"},{"title":"Customize Behavior","href":"/ai/approval-engine/customize-behavior"},{"title":"Patterns","href":"/ai/approval-engine/patterns"}]},{"group":"Activity Logs","pages":[{"title":"Activity Logs","sidebarTitle":"Overview","href":"/async-collaboration/activity/overview"},{"title":"Setup","href":"/async-collaboration/activity/setup"},{"title":"Customize Behavior","href":"/async-collaboration/activity/customize-behavior"}]},{"title":"Memory (Beta)","sidebarTitle":"Memory (Beta)","href":"/ai/memory/overview"},{"title":"Agent Comments","sidebarTitle":"Agent Comments","href":"/ai/agent-comments"},{"title":"Chat SDK Adapter","sidebarTitle":"Chat SDK Adapter","href":"/ai/chat-sdk-adapter"}]},{"group":"Self Hosting","pages":[{"group":"Partial Self Hosting","pages":[{"title":"Overview","href":"/self-hosting/partial/overview"},{"title":"Users","href":"/self-hosting/partial/users"},{"title":"Comments","href":"/self-hosting/partial/comments"},{"title":"Reactions","href":"/self-hosting/partial/reactions"},{"title":"Attachments","href":"/self-hosting/partial/attachments"},{"title":"Recordings","href":"/self-hosting/partial/recordings"},{"title":"Activity","href":"/self-hosting/partial/activity"},{"title":"Notifications","href":"/self-hosting/partial/notifications"},{"title":"Complete Field Inventory","href":"/self-hosting/partial/field-inventory"}]},{"group":"Full Self Hosting","pages":[{"title":"Overview","href":"/self-hosting/full/overview"},{"group":"GCP","pages":[{"title":"Get Started on GCP","sidebarTitle":"Get Started","href":"/self-hosting/full/gcp/overview"},{"title":"Install Guide","sidebarTitle":"Install","href":"/self-hosting/full/gcp/install"},{"title":"Upgrade Guide","sidebarTitle":"Upgrade","href":"/self-hosting/full/gcp/upgrade"},{"title":"Reference","href":"/self-hosting/full/gcp/reference"}]},{"group":"AWS","pages":[{"title":"Get Started on AWS (Closed Beta)","sidebarTitle":"Get Started","href":"/self-hosting/full/aws/overview"},{"title":"Install Guide","sidebarTitle":"Install","href":"/self-hosting/full/aws/install"},{"title":"Upgrade Guide","sidebarTitle":"Upgrade","href":"/self-hosting/full/aws/upgrade"}]},{"group":"Azure","pages":[{"title":"Get Started on Azure (Closed Beta)","sidebarTitle":"Get Started","href":"/self-hosting/full/azure/overview"},{"title":"Install Guide","sidebarTitle":"Install","href":"/self-hosting/full/azure/install"},{"title":"Upgrade Guide","sidebarTitle":"Upgrade","href":"/self-hosting/full/azure/upgrade"}]}]}]},{"group":"Backend SDKs","pages":[{"title":"Python SDK for self-hosting and REST API calls","sidebarTitle":"Python SDK","href":"/backend-sdks/python"},{"title":"Node SDK for self-hosting and REST API calls","sidebarTitle":"Node SDK","href":"/backend-sdks/node"}]},{"group":"Model Context Protocol","pages":[{"title":"REST APIs MCP Server (Beta)","sidebarTitle":"REST APIs MCP","href":"/mcp/mcp"}]},{"group":"Webhooks","pages":[{"title":"Basic Webhooks","href":"/webhooks/basic"},{"title":"Advanced Webhooks","href":"/webhooks/advanced"}]},{"group":"Security","pages":[{"title":null,"href":"/security/content-security-policy"},{"title":"Generating Auth Tokens","href":"/security/auth-tokens"},{"title":"SAML Single Sign-On (SSO)","sidebarTitle":"SAML SSO","href":"/security/saml-sso"},{"title":"Proxy Server","href":"/security/proxy-server"},{"title":"Supported Regions","href":"/security/supported-regions"}]},{"group":"Miscellaneous","pages":[{"title":"Managing Different Environments","href":"/migration/environments"},{"title":"Migrate from Cord to Velt","href":"/migration/migrate-from-cord-to-velt"},{"title":"Migrate from Liveblocks to Velt","href":"/migration/migrate-from-liveblocks-to-velt"},{"group":"Common Integration Questions","pages":[{"title":"AG Grid","href":"/integrations/ag-grid"}]}]}]},{"tab":"UI Customization","pages":[{"title":"UI Customization","href":"/ui-customization/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/rest-apis/v2/organizations/add-organizations"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes/version-6/sdk-changelog"}]},{"tab":"Examples","href":"https://velt.dev/examples"},{"tab":"DevTools","href":"https://velt.dev/devtools"}]},"basePath":"","title":"Customize Behavior - Velt","buildId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","deploymentId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","dynamics":[],"chunks":[]}