jsx-a11y/role-supports-aria-props

💼 This rule is enabled in the following configs: ☑️ recommended, 🔒 strict.

Enforce that elements with explicit or implicit roles defined contain only aria-* properties supported by that role. Many ARIA attributes (states and properties) can only be used on elements with particular roles. Some elements have implicit roles, such as <a href="#" />, which will resolve to role="link".

Rule details

This rule takes no arguments.

Succeed

```jsx

```

Fail

```jsx

```

Accessibility guidelines

Resources