# react/forbid-component-props
📝 Disallow certain props on components.
By default this rule prevents passing of [props that add lots of complexity](https://medium.com/brigade-engineering/don-t-pass-css-classes-between-components-e9f7ab192785) (`className`, `style`) to Components. This rule only applies to Components (e.g. ``) and not DOM nodes (e.g. `
`). The list of forbidden props can be customized with the `forbid` option.
## Rule Details
This rule checks all JSX elements and verifies that no forbidden props are used
on Components. This rule is off by default.
Examples of **incorrect** code for this rule:
```jsx
```
```jsx
```
Examples of **correct** code for this rule:
```jsx
```
```jsx
```
```jsx
```
## Rule Options
```js
...
"react/forbid-component-props": [, { "forbid": [|