docbrown/app/javascript/articles/__stories__/LoadingArticle.stories.jsx
Nick Taylor c83cad6fb6
Sorting Storybook stories (#8058)
* Added story sorting to Storybook.

* Added design system guidelines.

* Made Base in Storybook tree 2nd in the tree view.

* Now Components are 3rd in the treeview of Storybook.

* Now App Components are 4th in the treeview of Storybook.

* Froze node version to 12.16.0

* Revert "Froze node version to 12.16.0"

This reverts commit 093b119c7d7ca05ecb4e1c0234b24bcf8e7b10a4.
2020-05-27 13:10:16 -04:00

22 lines
609 B
JavaScript

import { h } from 'preact';
import { LoadingArticle } from '..';
import '../../../assets/stylesheets/articles.scss';
export default {
title: '4_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',
};