add scrolled bit-menu story
This commit is contained in:
parent
90877cbdde
commit
4054ff71f8
|
@ -69,3 +69,17 @@ export const ClosedMenu: Story = {
|
||||||
</bit-menu>`,
|
</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>`,
|
||||||
|
}),
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue