← All Components
<mth-collab-cursors>
Multiplayer live cursor and selection overlay using CSP-safe adopted CSSStyleSheet rules with strict numeric and label sanitization.
When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.
Live Interactive Preview
Ready · interact with <mth-collab-cursors>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/chat/collab-cursors"></script>
<mth-collab-cursors></mth-collab-cursors>import '@methane-ui/chat/collab-cursors';
import '@methane-ui/react';
export function Example() {
return <mth-collab-cursors></mth-collab-cursors>;
}<script setup lang="ts">
import '@methane-ui/chat/collab-cursors';
</script>
<template>
<mth-collab-cursors></mth-collab-cursors>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/chat/collab-cursors';
import { MthCollabCursorsDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthCollabCursorsDirective],
template: `<mth-collab-cursors></mth-collab-cursors>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/chat/collab-cursors';
import MthCollabCursors from '@methane-ui/svelte/MthCollabCursors.svelte';
</script>
<MthCollabCursors></MthCollabCursors>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
cursors | — | ReadonlyArray<unknown> | — | Array of collaborator cursor positions, sanitized names, and optional selection boxes. |
label | label | string | "" | Accessible region label for the cursor overlay. |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="none". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| i18n | Routes 2 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |