# LiveCollaborationTrigger If you implement live collaboration support and want to expose the same UI button as on [excalidraw.com](https://excalidraw.com), you can render the `` component using the [renderTopRightUI](/docs/@excalidraw/excalidraw/api/props#rendertoprightui) prop. You'll need to supply `onSelect()` to handle opening of your collaboration dialog, but the button will display `appState.collaborators` count provided you have supplied it. | Prop | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `onSelect` | `function` | Yes | | Handler called when the user clicks on the button | | `isCollaborating` | `boolean` | Yes | false | Whether live collaboration session is in effect. Modifies button style. | ```tsx live function App() { const [excalidrawAPI, setExcalidrawAPI] = useState(null); const [isCollaborating, setIsCollaborating] = useState(false); return (

Selecting the checkbox to see the collaborator count

setExcalidrawAPI(api)} renderTopRightUI={() => ( { window.alert("You clicked on collab button"); setIsCollaborating(true); }} /> )} >
); } ```