Skip to content

Commit

Permalink
test(layer-selector): update args
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Oct 2, 2024
1 parent 9a1d190 commit bad15dc
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions packages/layer-selector/src/LayerSelectorContainer.stories.jsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import { ExpandableContainer } from './';
import './LayerSelector.css';

export default {
component: ExpandableContainer,
parameters: {
layout: 'centered',
},
args: {
expanded: false,
},
};

export const closed = () => (
<ExpandableContainer>
<div style={{ width: '200px', height: '200px', border: '1px solid black' }}>
peek-a-boo
</div>
</ExpandableContainer>
);

export const open = () => (
<ExpandableContainer expanded={true}>
export const Example = (args) => (
<ExpandableContainer {...args}>
<div style={{ width: '200px', height: '200px', border: '1px solid black' }}>
peek-a-boo
</div>
Expand Down

0 comments on commit bad15dc

Please sign in to comment.