Skip to content

Commit

Permalink
chore(select): add story with popover position
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-manba committed Jan 5, 2025
1 parent 6ddbc79 commit 945bc47
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/components/select/stories/select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1495,3 +1495,23 @@ export const ValidationBehaviorAria = {
...defaultProps,
},
};

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} popoverProps={{placement: "top"}} />
</div>
</div>
</div>
),
};

0 comments on commit 945bc47

Please sign in to comment.