Skip to content

Commit

Permalink
add storybook knobs in loader overview example
Browse files Browse the repository at this point in the history
  • Loading branch information
lihnick committed Aug 9, 2021
1 parent 520ffb3 commit c847702
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/components/Loader/story.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { storiesOf } from '@storybook/react';
import { select } from '@storybook/addon-knobs';

import Loader from './Loader';
import Readme from './README.md';
Expand Down Expand Up @@ -27,12 +28,20 @@ storiesOf('Planets/Loader', module)
sidebar: Readme,
},
})
.add('Overview', () => (
<FlexWrapper>
<Loader size="md" />
<Loader style={{ marginTop: '100px' }} />
</FlexWrapper>
))
.add(
'Overview',
() => (
<FlexWrapper>
<Loader size={select('size', ['sm', 'md', 'lg', 'xl'], 'lg')} />
</FlexWrapper>
),
{
info: {
inline: false,
source: true,
},
}
)
.add(
'Examples',
() => (
Expand Down

0 comments on commit c847702

Please sign in to comment.