Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Add note in docs about componentsProps.root taking precedence #33097

4 changes: 4 additions & 0 deletions docs/data/base/getting-started/usage/usage.md
Expand Up @@ -86,6 +86,10 @@ These two examples are equivalent:
<BadgeUnstyled componentsProps={{ root: { id: 'badge1' } }}>
```

:::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.
ZeeshanTamboli marked this conversation as resolved.
Show resolved Hide resolved
:::

## Components vs. hooks

MUI Base includes two kinds of building blocks: **components** and **hooks**.
Expand Down