Skip to content

Commit

Permalink
docs: add changeset for #1626
Browse files Browse the repository at this point in the history
  • Loading branch information
jomunker committed Jan 26, 2024
1 parent e040398 commit e2774bc
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .changeset/wise-moose-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
"@comet/admin": minor
---

Add props `helperText` and `helperIcon` to MenuItemGroup. It renders an icon with a Tooltip behind the group section title, if the menu is not collapsed. If only a `helperText` is defined the icon `QuestionMark` will be used as default. If only `helperIcon` is defined the icon will be rendered without the Tooltip.

### Examples:
**Show helper text in a tooltip with default icon:**
```tsx
<MenuItemGroup
title="Group Title"
helperText="Helper Text"
>
{/* ... */}
</MenuItemGroup>
```
**Show only a custom icon:**
```tsx
<MenuItemGroup
title="Group Title"
helperIcon={<QuestionMark />}
>
{/* ... */}
</MenuItemGroup>
```
**Show a custom icon with the helper text in a tooltip:**
```tsx
<MenuItemGroup
title="Group Title"
helperText="Helper Text"
helperIcon={<QuestionMark />}
>
{/* ... */}
</MenuItemGroup>
```

0 comments on commit e2774bc

Please sign in to comment.