Skip to content

Commit 6e748ec

Browse files
feat(jsx): add support for aria-* attributes in JSX typings (#6221)
Add typings for ARIA attributes like `aria-labelledby`, `aria-hidden`, etc., to the DOMAttributes interface. This allows better accessibility support and developer experience via type safety and IntelliSense. fixes: #6182
1 parent 37ac3fc commit 6e748ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/declarations/stencil-public-runtime.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,10 @@ export namespace JSXBase {
18531853
onTransitionRunCapture?: (event: TransitionEvent) => void;
18541854
onTransitionStart?: (event: TransitionEvent) => void;
18551855
onTransitionStartCapture?: (event: TransitionEvent) => void;
1856+
1857+
// WAI-ARIA Attributes
1858+
[key: `aria-${string}`]: string | boolean | undefined;
1859+
[key: `aria${string}`]: string | boolean | undefined;
18561860
}
18571861
}
18581862

0 commit comments

Comments
 (0)