Skip to content

Commit

Permalink
docs: should be badge slot
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Jun 10, 2022
1 parent 05daa0e commit 4053fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/data/base/getting-started/usage/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ The code snippet below shows how to override the `Root` element of the [`BadgeUn
The `componentsProps` prop is an object that contains the props for all slots within a component.
You can use it to define additional custom props for a component's interior elements.

For example, the code snippet below shows how to add a custom CSS class to the `input` slot of the `BadgeUnstyled` component:
For example, the code snippet below shows how to add a custom CSS class to the `badge` slot of the `BadgeUnstyled` component:

```jsx
<BadgeUnstyled componentsProps={{ input: { className: 'my-badge' } }} />
<BadgeUnstyled componentsProps={{ badge: { className: 'my-badge' } }} />
```

All additional props placed on the primary component are also propagated into the `Root` slot (just as if they were placed in `componentsProps.root`).
Expand Down

0 comments on commit 4053fdd

Please sign in to comment.