add scrolled bit-menu story

This commit is contained in:
William Martin 2024-01-05 10:43:47 -05:00
parent 90877cbdde
commit 4054ff71f8
No known key found for this signature in database
GPG Key ID: A65ACD91BADF316B
1 changed files with 14 additions and 0 deletions

View File

@ -69,3 +69,17 @@ export const ClosedMenu: Story = {
</bit-menu>`,
}),
};
export const ManyItems: Story = {
render: (args) => ({
props: args,
template: `
<div class="tw-h-40">
<button bitButton buttonType="secondary" [bitMenuTriggerFor]="myMenu">Open menu</button>
</div>
<bit-menu #myMenu>
${`<a href="#" bitMenuItem>Foobar</a>`.repeat(100)}
</bit-menu>`,
}),
};