Skip to content

Commit

Permalink
Merge branch 'base-componentsProps-root-slot-precedence-docs' of http…
Browse files Browse the repository at this point in the history
…s://github.com/ZeeshanTamboli/material-ui into base-componentsProps-root-slot-precedence-docs
  • Loading branch information
ZeeshanTamboli committed Jun 23, 2022
2 parents e2037f5 + de851eb commit e985016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data/base/getting-started/usage/usage.md
Expand Up @@ -86,7 +86,7 @@ These two examples are equivalent:
```

:::warning
However, if both `componentsProps.root` and additional props are specified with both having same properties but different values, the `componentsProps.root` props will take precedence.
If both `componentsProps.root` and additional props have the same keys but different values, the `componentsProps.root` props will take precedence. This does not apply to classes and the `style` prop (they will be merged instead).
:::

## Components vs. hooks
Expand Down

0 comments on commit e985016

Please sign in to comment.