Skip to content

Commit

Permalink
Add wrapped component to storybook example
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 committed Mar 27, 2024
1 parent 1c81b72 commit 5ac52c8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ export const InactiveItems = () => (
</ActionMenu>
)

// Showing that it works with wrapped components
const PasteFromMenuItem = () => <ActionList.Item>Paste from</ActionList.Item>

export const Submenus = () => (
<ActionMenu>
<ActionMenu.Button>Edit</ActionMenu.Button>
Expand All @@ -215,7 +218,7 @@ export const Submenus = () => (
<ActionList.Item>Paste with formatting</ActionList.Item>
<ActionMenu>
<ActionMenu.Anchor>
<ActionList.Item>Paste from</ActionList.Item>
<PasteFromMenuItem />
</ActionMenu.Anchor>
<ActionMenu.Overlay>
<ActionList>
Expand Down

0 comments on commit 5ac52c8

Please sign in to comment.