Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Apr 27, 2023
1 parent 34421b8 commit 8519708
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docs/data/base/components/badge/badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,7 @@ The Badge component is composed of a root `<span>` that houses the element that

### Custom structure

Use the `slots.root` prop to override the root slot with a custom element:

```jsx
<Badge slots={{ root: 'div' }} />
```

Use the `slots` prop to override any interior slots in addition to the root:
Use the `slots` prop to override the root or any other interior slot.:

```jsx
<Badge slots={{ root: 'div', badge: 'div' }} />
Expand Down

0 comments on commit 8519708

Please sign in to comment.