Skip to content

Commit e25a151

Browse files
Lukas742MarcusNotheis
authored andcommitted
docs(ShellBar): update popover example (#4654)
1 parent 1de3ae3 commit e25a151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/main/src/webComponents/ShellBar/ShellBar.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import ShellBarDomRef from './ShellBarDomRef.json';
3333

3434
### Recipe: How to open a popover on ShellBarItem click?
3535

36-
To open a popover with the `ShellBarItem` you can use the `targetRef` property of the `onItemClick` event.
36+
To open a popover with the `ShellBarItem` you can use the `targetRef` property of the `onClick` event.
3737

3838
```jsx
3939
const ShellBarComponent = () => {
@@ -44,7 +44,7 @@ const ShellBarComponent = () => {
4444
return (
4545
<>
4646
<ShellBar>
47-
<ShellBarItem onItemClick={handleShellBarItemClick} icon="add" text="add" />
47+
<ShellBarItem onClick={handleShellBarItemClick} icon="add" text="add" />
4848
</ShellBar>
4949
<Popover ref={popoverRef}>Hello there!</Popover>
5050
</>

0 commit comments

Comments
 (0)