# jsx-indent-props

Rule `react/jsx-indent-props`. Enforce props indentation in JSX

- Source: react
- Technologies: React
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 3.4M weekly downloads of presets that enable it
- Trend: +2.3% last quarter
- Rank: #1443 by reach, #1579 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `react/jsx-indent-props` | no | safe | package `eslint-plugin-react` | [docs](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-indent-props.md) |

## Code examples

### Incorrect: the rule reports this

```jsx
// 2 spaces indentation
<Hello
  firstName="John"
/>

// no indentation
<Hello
firstName="John"
/>

// 1 tab indentation
<Hello
  firstName="John"
/>
```

### Correct: the rule accepts this

```jsx
// 2 spaces indentation
// [2, 2]
<Hello
  firstName="John"
/>

<Hello
  firstName="John" />

// tab indentation
// [2, 'tab']
<Hello
  firstName="John"
/>

// no indentation
// [2, 0]
<Hello
firstName="John"
/>

// aligned with first prop
// [2, 'first']
<Hello
  firstName="John"
  lastName="Doe"
/>

<Hello
       firstName="John"
       lastName="Doe"
/>
// …
```

Examples from the ESLint documentation.

## Enable it

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

```js
import react from "eslint-plugin-react";

export default [
  {
    plugins: { react },
    rules: {
      "react/jsx-indent-props": "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

- [react/jsx-indent](https://lintradar.dev/rules/react/jsx-indent.md): Enforce JSX indentation
- [react/jsx-max-props-per-line](https://lintradar.dev/rules/react/jsx-max-props-per-line.md): Enforce maximum of props on a single line in JSX
- [react/jsx-first-prop-new-line](https://lintradar.dev/rules/react/jsx-first-prop-new-line.md): Enforce proper position of the first property in JSX
- [react/jsx-one-expression-per-line](https://lintradar.dev/rules/react/jsx-one-expression-per-line.md): Require one JSX element per line
- [react/jsx-equals-spacing](https://lintradar.dev/rules/react/jsx-equals-spacing.md): Enforce or disallow spaces around equal signs in JSX attributes
- [react/jsx-props-no-multi-spaces](https://lintradar.dev/rules/react/jsx-props-no-multi-spaces.md): Disallow multiple spaces between inline JSX props

---

Web page: https://lintradar.dev/rules/react/jsx-indent-props. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
