docbrown/app/javascript/articles/__stories__/LoadingArticle.stories.jsx
2020-05-15 13:08:02 -04:00

22 lines
607 B
JavaScript

import { h } from 'preact';
import { LoadingArticle } from '..';
import '../../../assets/stylesheets/articles.scss';
export default {
title: 'App Components/Article Loading',
component: LoadingArticle,
// Using an arbitrary width here. This is roughly the size of articles in Storybook
decorators: [(story) => <div style={{ minWidth: '509px' }}>{story()}</div>],
};
export const DefaultArticle = () => <LoadingArticle />;
DefaultArticle.story = {
name: 'default',
};
export const FeaturedLoading = () => <LoadingArticle version="featured" />;
FeaturedLoading.story = {
name: 'featured',
};