# control-has-associated-label

Rule `jsx-a11y/control-has-associated-label`. Enforce that a control (an interactive element) has a text label.

- Source: jsx-a11y
- Technologies: Accessibility, React
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 3.4M weekly downloads of presets that enable it
- Trend: +2.3% last quarter
- Rank: #1428 by reach, #1564 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `jsx-a11y/control-has-associated-label` | no | no | package `eslint-plugin-jsx-a11y` | [docs](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/control-has-associated-label.md) |
| Oxlint | `jsx-a11y/control-has-associated-label` | no | no | plugin `jsx-a11y`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/control-has-associated-label.html) |
| Biome | `nursery/useControlLabel` | no | no | group nursery, since 2.5.9 | [docs](https://biomejs.dev/linter/rules/use-control-label/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<button type="button" class="icon-save" />
```

### Correct: the rule accepts this

```jsx
<button type="button" aria-label="Save" class="icon-save" />
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import jsxA11y from "eslint-plugin-jsx-a11y";

export default [
  {
    plugins: { "jsx-a11y": jsxA11y },
    rules: {
      "jsx-a11y/control-has-associated-label": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "jsx-a11y"
  ],
  "rules": {
    "jsx-a11y/control-has-associated-label": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useControlLabel": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Airbnb](https://lintradar.dev/presets/airbnb.md) | ESLint | `eslint-config-airbnb` | 346 | 3.4M | +2.3% |

## Related rules

- [jsx-a11y/prefer-tag-over-role](https://lintradar.dev/rules/jsx-a11y/prefer-tag-over-role.md): Enforces using semantic DOM elements over the ARIA `role` property.
- [jsx-a11y/no-aria-hidden-on-focusable](https://lintradar.dev/rules/jsx-a11y/no-aria-hidden-on-focusable.md): Disallow `aria-hidden="true"` from being set on focusable elements.
- [jsx-a11y/anchor-ambiguous-text](https://lintradar.dev/rules/jsx-a11y/anchor-ambiguous-text.md): Enforce `<a>` text to not exactly match "click here", "here", "link", or "a link".
- [jsx-a11y/lang](https://lintradar.dev/rules/jsx-a11y/lang.md): Enforce lang attribute has a valid value.
- [jsx-a11y/no-noninteractive-element-interactions](https://lintradar.dev/rules/jsx-a11y/no-noninteractive-element-interactions.md): Non-interactive elements should not be assigned mouse or keyboard event listeners.
- [jsx-a11y/autocomplete-valid](https://lintradar.dev/rules/jsx-a11y/autocomplete-valid.md): Enforce that autocomplete attributes are used correctly.

---

Web page: https://lintradar.dev/rules/jsx-a11y/control-has-associated-label. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
