Skip to content

Commit

Permalink
DropZone: Make the drop zone in Storybook the same size as the item
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Dec 23, 2024
1 parent b1a4344 commit 7d9cc2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/components/src/drop-zone/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ export default meta;

const Template: StoryFn< typeof DropZone > = ( props ) => {
return (
<div style={ { background: 'lightgray', padding: 16 } }>
<div
style={ {
background: 'lightgray',
padding: 32,
position: 'relative',
} }
>
Drop something here
<DropZone { ...props } />
</div>
Expand Down

0 comments on commit 7d9cc2c

Please sign in to comment.