docbrown/app/javascript/articles/__stories__/LoadingArticle.stories.jsx
Rajat Talesra 47ec373f16
Updated story book annotations (#18562)
* Updated story book annotations

* Updated story book annotations

* Storybook code updated for css

* Nit fix
2022-10-11 19:43:40 +05:30

18 lines
589 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.storyName = 'default';
export const FeaturedLoading = () => <LoadingArticle version="featured" />;
FeaturedLoading.storyName = 'featured';