How @react-three/a11y manages accessibility in Canvas
mainThe library manages accessibility by syncing semantic DOM elements that are absolutely positioned over the visible content in your page. When you use the A11y component with a specific role, the library appends the corresponding HTML tag to your document to ensure screen readers can interact with the 3D scene elements.
Role to HTML Mapping:
role="link"$\rightarrow$<a>role="button"$\rightarrow$<button>role="content"$\rightarrow$<p>role="togglebutton"$\rightarrow$<button>(witharia-pressedattribute)