Skip to content

Commit

Permalink
chore: add pattern of popover story
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-manba committed Jan 5, 2025
1 parent bb38ca7 commit 5d0fc6d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions packages/components/autocomplete/stories/autocomplete.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1187,3 +1187,23 @@ export const CustomItemHeight = {
itemHeight: 40,
},
};

export const PopoverTopOrBottom = {
args: {
...defaultProps,
},
render: (args) => (
<div className="relative h-screen w-screen">
<div className="absolute top-0 p-8">
<div className="w-48">
<Template {...args} />
</div>
</div>
<div className="absolute top-1/2 p-8">
<div className="w-48">
<Template {...args} />
</div>
</div>
</div>
),
};
2 changes: 1 addition & 1 deletion packages/components/select/stories/select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ export const PopoverTopOrBottom = {
</div>
<div className="absolute top-1/2 p-8">
<div className="w-48">
<Template {...args} popoverProps={{placement: "top"}} />
<Template {...args} />
</div>
</div>
</div>
Expand Down

0 comments on commit 5d0fc6d

Please sign in to comment.