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 @@ -85,6 +85,10 @@ These two examples are equivalent:
<BadgeUnstyled componentsProps={{ root: { id: 'badge1' } }}>
```

:::warning
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

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