Skip to content

Commit

Permalink
chore: add code preview to images docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdyman committed Apr 5, 2020
1 parent fb76bd0 commit 8986ac8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/2-Images.story.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Props, Story } from '@storybook/addon-docs/blocks';
import { Meta, Preview, Props, Story } from '@storybook/addon-docs/blocks';
import { ReactCompareSlider, ReactCompareSliderImage } from '../src';

<Meta title="Docs/Images" component={ReactCompareSlider} />
Expand All @@ -7,7 +7,9 @@ import { ReactCompareSlider, ReactCompareSliderImage } from '../src';

<br />

<Story id="demos-images--default" />
<Preview>
<Story id="demos-images--default" />
</Preview>

Images can be rendered using the `ReactCompareSliderImage` component and/or
by using a custom image component, e.g. `picture` or `img`.
Expand Down

0 comments on commit 8986ac8

Please sign in to comment.